From 99e10fa3653af79095e1e32071a76386dfa2be7e Mon Sep 17 00:00:00 2001 From: nns Date: Fri, 9 Oct 2026 01:14:42 +0500 Subject: [PATCH] =?UTF-8?q?fix(inventory):=20audit=20action=20=C2=ABInvCan?= =?UTF-8?q?celResults=C2=BB=20=E2=89=A4=2020=20=D1=81=D0=B8=D0=BC=D0=B2?= =?UTF-8?q?=D0=BE=D0=BB=D0=BE=D0=B2=20(varchar(20))?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit «InventoryCancelResults» (22) не влезал в OrgAuditLog.Action varchar(20) → SqlState 22001 → cancel-results возвращал 500. Укоротил до «InvCancelResults». Co-Authored-By: Claude Opus 5.5 --- .../Controllers/Inventory/InventoriesController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/food-market.api/Controllers/Inventory/InventoriesController.cs b/src/food-market.api/Controllers/Inventory/InventoriesController.cs index 4e241f8..c391827 100644 --- a/src/food-market.api/Controllers/Inventory/InventoriesController.cs +++ b/src/food-market.api/Controllers/Inventory/InventoriesController.cs @@ -761,7 +761,7 @@ public async Task CancelResults(Guid id, CancellationToken ct) { await _db.SaveChangesAsync(ct); // Аудит в той же транзакции: кто/когда/из какой инвентаризации снял проведение. - await _audit.LogAsync("InventoryCancelResults", "inventory", doc.Id, new + await _audit.LogAsync("InvCancelResults", "inventory", doc.Id, new { inventoryNumber = doc.Number, enters = enters.Select(e => new { e.Id, e.Number }).ToList(),