Skip to content

Commit

Permalink
chore: add log when not allow app slug
Browse files Browse the repository at this point in the history
  • Loading branch information
tuanngocptn committed May 27, 2024
1 parent 41b8111 commit 90daef4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions src/app.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ export class AppController {
this.logger.info(reqBody);
const { issue } = reqBody.data;
if (!this.appHelper.isAllowNotification(issue.project.slug)) {
this.logger.info(
'This app slug "${issue.project.slug}" is not allowed for push notifications !!!',
);
return;
}
const issueDetails = await this.appService.getIssueDetail(issue.id);
Expand Down

0 comments on commit 90daef4

Please sign in to comment.