From 2fb3060da17810df414b4bbb318b3347bb7c17a0 Mon Sep 17 00:00:00 2001 From: Diego Sampaio Date: Fri, 19 Feb 2021 16:12:58 -0300 Subject: [PATCH] Regression: Fix notification worker not firing (#20829) --- app/notification-queue/server/NotificationQueue.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/notification-queue/server/NotificationQueue.ts b/app/notification-queue/server/NotificationQueue.ts index c75fea43663..a1533e958a1 100644 --- a/app/notification-queue/server/NotificationQueue.ts +++ b/app/notification-queue/server/NotificationQueue.ts @@ -43,10 +43,10 @@ class NotificationClass { setTimeout(() => { try { - this.worker.bind(this); + this.worker(); } catch (e) { console.error('Error sending notification', e); - this.executeWorkerLater.bind(this); + this.executeWorkerLater(); } }, this.cyclePause); }