Skip to content

Commit

Permalink
other: remove typo
Browse files Browse the repository at this point in the history
  • Loading branch information
paga16-hash committed Jan 28, 2024
1 parent 8ff49ae commit 34fefb1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions alarm/src/routes/notification.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ notificationRouter.route('/').get((req: Request, res: Response): void => {
.then((notifications: Notification[]): void => {
res.status(HttpStatusCode.OK).send(notifications)
})
.catch((err): void => {
console.log(err)
.catch((): void => {
res.send({ error: 'No notifications found' })
})
})
Expand Down

0 comments on commit 34fefb1

Please sign in to comment.