diff --git a/docs/content/advanced/backend/upgrade-guides/1-7-0.md b/docs/content/advanced/backend/upgrade-guides/1-7-0.md index 497bec85b1..a5eebd7e95 100644 --- a/docs/content/advanced/backend/upgrade-guides/1-7-0.md +++ b/docs/content/advanced/backend/upgrade-guides/1-7-0.md @@ -24,23 +24,23 @@ medusa migrations run ### Change Used Methods -Instead of using `customerService.retrieveByEmail`, you should now use the methods `customerService.retrieveRegisteredByEmail` or `customerService.retrieveUnRegisteredByEmail`. +Instead of using `customerService.retrieveByEmail`, you should now use the methods `customerService.retrieveRegisteredByEmail` or `customerService.retrieveUnregisteredByEmail`. The `customerService.retrieveRegisteredByEmail` method allows you to retrieve a registered customer by email: -```tsx +```ts customerService.retrieveRegisteredByEmail("example@gmail.com"); ``` On the other hand, the `retrieveUnregisteredByEmail` method allows to retrieve guest customers by email: ```jsx -customerService.retrieveUnRegisteredByEmail("example@gmail.com"); +customerService.retrieveUnregisteredByEmail("example@gmail.com"); ``` To retrieve a customer by email regardless of whether they are registered or not, you can use the `customerService.list` method instead: -```tsx +```ts customerService.list({ email: "example@gmail.com" })