Got rid context bind in the route.

This commit is contained in:
Skorpios
2025-02-12 21:22:44 -08:00
parent 70ffe1b661
commit 12d9f154bf
2 changed files with 2 additions and 1 deletions

View File

@@ -2,6 +2,7 @@
class NotificationController {
constructor(notificationService) {
this.notificationService = notificationService;
this.triggerNotification = this.triggerNotification.bind(this);
}
async triggerNotification(req, res, next) {

View File

@@ -36,7 +36,7 @@ class NotificationRoutes {
'/trigger',
verifyJWT,
this.validateRequest(triggerNotificationBodyValidation),
this.notificationController.triggerNotification.bind(this.notificationController)
this.notificationController.triggerNotification
);
}