Add body Info

This commit is contained in:
Victor Radael
2022-03-29 11:54:14 -03:00
parent 7a95ec537f
commit ca7f9855b1
4 changed files with 176 additions and 141 deletions
+5 -2
View File
@@ -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();