remove lock on inventory

This commit is contained in:
2025-12-18 09:32:15 +03:30
parent 32ad4f58d5
commit d7b6c9d35c
+1 -1
View File
@@ -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) {