fix(core-flows,medusa): use deleteRefundReasonsWorkflow in delete /admin/refund-reasons/:id (#11012)

This commit is contained in:
Shahed Nasser authored and GitHub committed 2025-01-17 11:22:10 +02:00
1 parent c09d7e5ba8
commit 7be47354e1
3 files changed
+9 -2

No files matched your search

@@ -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,