fix(core-flows,medusa): use deleteRefundReasonsWorkflow in delete /admin/refund-reasons/:id (#11012)
This commit is contained in:
6
.changeset/five-candles-dress.md
Normal file
6
.changeset/five-candles-dress.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
"@medusajs/core-flows": patch
|
||||
"@medusajs/medusa": patch
|
||||
---
|
||||
|
||||
fix(core-flows,medusa): use deleteRefundReasonsWorkflow in delete /admin/refund-reasons/:id
|
||||
@@ -2,3 +2,4 @@ export * from "./create-payment-session"
|
||||
export * from "./create-refund-reasons"
|
||||
export * from "./delete-payment-sessions"
|
||||
export * from "./update-refund-reasons"
|
||||
export * from "./delete-refund-reasons"
|
||||
@@ -1,5 +1,5 @@
|
||||
import {
|
||||
deleteReturnReasonsWorkflow,
|
||||
deleteRefundReasonsWorkflow,
|
||||
updateRefundReasonsWorkflow,
|
||||
} from "@medusajs/core-flows"
|
||||
import { HttpTypes, RefundReasonResponse } from "@medusajs/framework/types"
|
||||
@@ -56,7 +56,7 @@ export const DELETE = async (
|
||||
const { id } = req.params
|
||||
const input = { ids: [id] }
|
||||
|
||||
await deleteReturnReasonsWorkflow(req.scope).run({ input })
|
||||
await deleteRefundReasonsWorkflow(req.scope).run({ input })
|
||||
|
||||
res.json({
|
||||
id,
|
||||
|
||||
Reference in New Issue
Block a user