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

This commit is contained in:
sabakhilji
2022-09-16 03:42:26 -04:00
committed by GitHub
parent 09627c01d3
commit 6132711eef
2 changed files with 7 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
---
"@medusajs/medusa-js": patch
---
Use correct payload type for resetting password in `medusa-js`

View File

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