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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user