Skip to content

Commit 293a74b

Browse files
fix(core): Omit saving Order.customFields on applyPriceAdjustments
This change prevents accidental loss of data due to race conditions where multiple parallel code paths attempt to modify a particular order, where one path involves setting a custom field value and another path involves changing the contents of the order in a way that would trigger a re-calculation of order totals.
1 parent 15611cf commit 293a74b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/core/src/service/services/order.service.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2124,6 +2124,7 @@ export class OrderService {
21242124
'sellerOrders',
21252125
'customer',
21262126
'modifications',
2127+
'customFields',
21272128
]),
21282129
{
21292130
reload: false,

0 commit comments

Comments
 (0)