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

This commit is contained in:
Rishi Kumar Ray authored and GitHub committed 2022-02-16 12:59:16 +01:00
1 parent 7ae754bb61
commit 22d3d4a2f6
2 files changed
+2 -2

No files matched your search

@@ -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({