Skip to content

Commit

Permalink
Merge pull request #62 from arati-tekdi/main
Browse files Browse the repository at this point in the history
Added role check for validate link
  • Loading branch information
Shubham4026 authored Nov 22, 2024
2 parents b6947da + a253368 commit eb98aa7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/common/loggers/logging.middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ export class LoggingMiddleware {
// Log request details
const { method, originalUrl, body, query } = req;
this.loggerService.log(`[Request] ${method} ${originalUrl}`);
this.loggerService.log(`Request Body: ${body}`);
this.loggerService.log(`Request Query: ${query}`);
this.loggerService.log('Request Body: ' + JSON.stringify(body));
+this.loggerService.log('Request Query:' + JSON.stringify(query || {}));

// Listen for the response and log it after the response is sent
res.on('finish', () => {
Expand Down
2 changes: 1 addition & 1 deletion src/common/middleware/apiConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -948,7 +948,7 @@ export const apiList = {
'/action/asset/v3/validate': createRouteObject(
{
post: {
...common_role_check,
ROLE_CHECK: rolesGroup.admin_scta_ccta,
},
},
'/asset/v4/validate',
Expand Down

0 comments on commit eb98aa7

Please sign in to comment.