Skip to content

Commit

Permalink
chore: edit logger
Browse files Browse the repository at this point in the history
  • Loading branch information
tuanngocptn committed May 24, 2024
1 parent 2070879 commit 41b8111
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ export class AppController {
@HttpCode(HttpStatus.OK)
webhooks(@Body() reqBody: SentryRequestType) {
const running = async () => {
this.logger.info(reqBody.data);
const { issue } = reqBody.data;
try {
this.logger.info(reqBody);
const { issue } = reqBody.data;
if (!this.appHelper.isAllowNotification(issue.project.slug)) {
return;
}
Expand All @@ -54,6 +54,6 @@ export class AppController {
}
};
running();
return reqBody.installation;
return reqBody.installation || { message: 'success' };
}
}

0 comments on commit 41b8111

Please sign in to comment.