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

This commit is contained in:
Rishi Kumar Ray
2022-02-16 17:29:16 +05:30
committed by GitHub
parent 7ae754bb61
commit 22d3d4a2f6
2 changed files with 2 additions and 2 deletions
@@ -83,7 +83,7 @@ class AdminDraftOrdersResource extends BaseResource {
markPaid(
id: string
): ResponsePromise<AdminPostDraftOrdersDraftOrderRegisterPaymentRes> {
const path = `/admin/draft-orders/${id}/register-payment`
const path = `/admin/draft-orders/${id}/pay`
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(
ctx.status(200),
ctx.json({