Skip to content

Comments

Added pseudocode and comments for the removal of linking customer fea…#18

Draft
AshleyDawson wants to merge 1 commit intomainfrom
match-customers-by-email
Draft

Added pseudocode and comments for the removal of linking customer fea…#18
AshleyDawson wants to merge 1 commit intomainfrom
match-customers-by-email

Conversation

@AshleyDawson
Copy link
Contributor

…ture in v1

const { customer } = await getCustomer(client, customerId);
const { orders } = customer;
// todo: change the getCustomer() method to accept an email
getCustomer(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can't find one customer by email. To find via email we need to use Customers query. This query may return more than one customer

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be do faster to Linking the customer one by one

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On LinkCustomer page, we just need to delete the existing association and add a new one

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, that's fine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants