mirror of
https://github.com/bluewave-labs/Checkmate.git
synced 2026-01-29 13:19:33 -06:00
Got rid context bind in the route.
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
class NotificationController {
|
||||
constructor(notificationService) {
|
||||
this.notificationService = notificationService;
|
||||
this.triggerNotification = this.triggerNotification.bind(this);
|
||||
}
|
||||
|
||||
async triggerNotification(req, res, next) {
|
||||
|
||||
@@ -36,7 +36,7 @@ class NotificationRoutes {
|
||||
'/trigger',
|
||||
verifyJWT,
|
||||
this.validateRequest(triggerNotificationBodyValidation),
|
||||
this.notificationController.triggerNotification.bind(this.notificationController)
|
||||
this.notificationController.triggerNotification
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user