mirror of
https://github.com/dadosfera/maestro.git
synced 2026-11-27 13:50:05 +00:00
Add body Info
This commit is contained in:
@@ -46,8 +46,11 @@ export class LoggerMiddleware implements NestMiddleware {
|
||||
});
|
||||
|
||||
if (havePermission) {
|
||||
request.body.client_id = clienId;
|
||||
request.body.user_id = userId;
|
||||
request.body.info = {
|
||||
customer_id: clienId,
|
||||
user_id: userId,
|
||||
};
|
||||
|
||||
next();
|
||||
} else {
|
||||
throw new ForbiddenException();
|
||||
|
||||
Reference in New Issue
Block a user