fix: enforce 1 shipping method per profile (#322)
prevents the scenario where multiple concurrent calls to insert a shipping method may lead to an inconsistent cart state with more than 1 shipping method per profile.
This commit is contained in:
@@ -1365,7 +1365,7 @@ class CartService extends BaseService {
|
||||
.withTransaction(manager)
|
||||
.emit(CartService.Events.UPDATED, result)
|
||||
return result
|
||||
})
|
||||
}, "SERIALIZABLE")
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user