From 96cee05945feb877ee13575629a61e2f222ff54a Mon Sep 17 00:00:00 2001 From: kjs Date: Tue, 7 Apr 2026 14:51:50 +0900 Subject: [PATCH] feat: Add userId retrieval in deleteReceiving function - Enhanced the deleteReceiving function in the receivingController to retrieve the userId from the request object. - This addition will facilitate better tracking and auditing of delete operations by associating them with the user performing the action. --- backend-node/src/controllers/receivingController.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/backend-node/src/controllers/receivingController.ts b/backend-node/src/controllers/receivingController.ts index fbf40176..8f9c9863 100644 --- a/backend-node/src/controllers/receivingController.ts +++ b/backend-node/src/controllers/receivingController.ts @@ -474,6 +474,7 @@ export async function deleteReceiving(req: AuthenticatedRequest, res: Response) try { const companyCode = req.user!.companyCode; + const userId = req.user!.userId; const { id } = req.params; await client.query("BEGIN");