fix(order): archive order status update (#10340)
**What** - array was passed as an id when updating order status upon archive --- RESOLVES SUP-305 CLOSES https://github.com/medusajs/medusa/issues/10328
This commit is contained in:
@@ -3079,10 +3079,12 @@ export default class OrderModuleService<
|
||||
}
|
||||
|
||||
await this.orderService_.update(
|
||||
{
|
||||
id: orderIds,
|
||||
status: OrderStatus.ARCHIVED,
|
||||
},
|
||||
orderIds.map((id) => {
|
||||
return {
|
||||
id,
|
||||
status: OrderStatus.ARCHIVED,
|
||||
}
|
||||
}),
|
||||
sharedContext
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user