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.
This commit is contained in:
kjs
2026-04-07 14:51:50 +09:00
parent 57b64653c0
commit 96cee05945

View File

@@ -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");