Mark draft order endpoint wrong in medusa-js (#1046)

This commit is contained in:
Rishi Kumar Ray
2022-02-25 18:53:49 +01:00
committed by olivermrbl
parent 7a3a1837a1
commit 07a13f6faf
2 changed files with 2 additions and 2 deletions
@@ -83,7 +83,7 @@ class AdminDraftOrdersResource extends BaseResource {
markPaid( markPaid(
id: string id: string
): ResponsePromise<AdminPostDraftOrdersDraftOrderRegisterPaymentRes> { ): ResponsePromise<AdminPostDraftOrdersDraftOrderRegisterPaymentRes> {
const path = `/admin/draft-orders/${id}/register-payment` const path = `/admin/draft-orders/${id}/pay`
return this.client.request("POST", path, {}) return this.client.request("POST", path, {})
} }
@@ -711,7 +711,7 @@ export const adminHandlers = [
} }
), ),
rest.post("/admin/draft-orders/:id/register-payment", (req, res, ctx) => { rest.post("/admin/draft-orders/:id/pay", (req, res, ctx) => {
return res( return res(
ctx.status(200), ctx.status(200),
ctx.json({ ctx.json({