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:
Zakaria El Asri
2021-07-23 11:26:20 +01:00
committed by GitHub
parent 8c26a5fd88
commit b378a4f8bc
3 changed files with 71 additions and 1 deletions
+1 -1
View File
@@ -1365,7 +1365,7 @@ class CartService extends BaseService {
.withTransaction(manager)
.emit(CartService.Events.UPDATED, result)
return result
})
}, "SERIALIZABLE")
}
/**