From d75d42be090269c2ad28c15ab0fa9661ab808b38 Mon Sep 17 00:00:00 2001 From: Alex Plekhov <33345177+Lao-Ax@users.noreply.github.com> Date: Thu, 31 Oct 2024 18:35:21 +0300 Subject: [PATCH] Update NotificationQueue.ts The line `worker(counter++)` passed the previous state of the counter, I mean befor increment. So it is the same like `worker(0); couner = counter + 1` --- apps/meteor/app/notification-queue/server/NotificationQueue.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/meteor/app/notification-queue/server/NotificationQueue.ts b/apps/meteor/app/notification-queue/server/NotificationQueue.ts index 78a9e931fcb5..8bfcead0e47f 100644 --- a/apps/meteor/app/notification-queue/server/NotificationQueue.ts +++ b/apps/meteor/app/notification-queue/server/NotificationQueue.ts @@ -102,7 +102,7 @@ class NotificationClass { return true; } - return this.worker(counter++); + return this.worker(++counter); } getNextNotification(): Promise {