Mark draft order endpoint wrong in medusa-js (#1046)
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user