Skip to content

Commit

Permalink
fix(order): archive order status update (#10340)
Browse files Browse the repository at this point in the history
**What**
- array was passed as an id when updating order status upon archive

---

RESOLVES SUP-305
CLOSES #10328
  • Loading branch information
fPolic authored Nov 28, 2024
1 parent 768f970 commit 805fe4b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions packages/modules/order/src/services/order-module-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
)

Expand Down

0 comments on commit 805fe4b

Please sign in to comment.