fix:(dasboard, order): set return status on cancel (#13578)

This commit is contained in:
Frane Polić
2025-09-24 08:48:00 +02:00
committed by GitHub
parent 5e827ec95d
commit 6e806942c7
3 changed files with 25 additions and 6 deletions

View File

@@ -4,7 +4,11 @@ import {
OrderTypes,
ReturnDTO,
} from "@medusajs/framework/types"
import { ChangeActionType, promiseAll } from "@medusajs/framework/utils"
import {
ChangeActionType,
promiseAll,
ReturnStatus,
} from "@medusajs/framework/utils"
async function createOrderChange(
service,
@@ -90,6 +94,7 @@ export async function cancelReturn(
{
data: {
canceled_at: new Date(),
status: ReturnStatus.CANCELED,
},
selector: {
id: returnOrder.id,