fix(js-sdk): fix the API route used in fulfillment.cancel method (#11936)
This commit is contained in:
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"@medusajs/js-sdk": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
fix(js-sdk): fix the API route used in fulfillment.cancel method
|
||||||
@@ -85,7 +85,7 @@ export class Fulfillment {
|
|||||||
headers?: ClientHeaders
|
headers?: ClientHeaders
|
||||||
) {
|
) {
|
||||||
return await this.client.fetch<HttpTypes.AdminFulfillmentResponse>(
|
return await this.client.fetch<HttpTypes.AdminFulfillmentResponse>(
|
||||||
`/admin/fulfillments/${id}`,
|
`/admin/fulfillments/${id}/cancel`,
|
||||||
{
|
{
|
||||||
method: "POST",
|
method: "POST",
|
||||||
body: {},
|
body: {},
|
||||||
|
|||||||
Reference in New Issue
Block a user