remove lock on inventory
This commit is contained in:
@@ -160,7 +160,7 @@ export class InventoryService {
|
|||||||
// Load all existing inventories in one query
|
// Load all existing inventories in one query
|
||||||
const existingInventories = await em.find(Inventory, {
|
const existingInventories = await em.find(Inventory, {
|
||||||
food: { id: { $in: foodIds } },
|
food: { id: { $in: foodIds } },
|
||||||
},{ lockMode: LockMode.PESSIMISTIC_WRITE });
|
});
|
||||||
|
|
||||||
const inventoryMap = new Map<string, Inventory>();
|
const inventoryMap = new Map<string, Inventory>();
|
||||||
for (const inventory of existingInventories) {
|
for (const inventory of existingInventories) {
|
||||||
|
|||||||
Reference in New Issue
Block a user