fix(medusa-js): Use correct payload type in medusa-js (#2207)

This commit is contained in:
sabakhilji authored and GitHub committed 2022-09-16 09:42:26 +02:00
1 parent 09627c01d3
commit 6132711eef
2 files changed
+7 -1

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
---
"@medusajs/medusa-js": patch
---
Use correct payload type for resetting password in `medusa-js`
@@ -5,6 +5,7 @@ import {
StorePostCustomersCustomerPasswordTokenReq, StorePostCustomersCustomerPasswordTokenReq,
StorePostCustomersCustomerReq, StorePostCustomersCustomerReq,
StorePostCustomersReq, StorePostCustomersReq,
StorePostCustomersResetPasswordReq,
} from "@medusajs/medusa" } from "@medusajs/medusa"
import qs from "qs" import qs from "qs"
import { ResponsePromise } from "../typings" import { ResponsePromise } from "../typings"
@@ -83,7 +84,7 @@ class CustomerResource extends BaseResource {
* @return {ResponsePromise<StoreCustomersRes>} * @return {ResponsePromise<StoreCustomersRes>}
*/ */
resetPassword( resetPassword(
payload: StorePostCustomersCustomerPasswordTokenReq, payload: StorePostCustomersResetPasswordReq,
customHeaders: Record<string, any> = {} customHeaders: Record<string, any> = {}
): ResponsePromise<StoreCustomersRes> { ): ResponsePromise<StoreCustomersRes> {
const path = `/store/customers/password-reset` const path = `/store/customers/password-reset`