From daa66e3439deb33d170290906f95cdc6a85b1f16 Mon Sep 17 00:00:00 2001 From: Shepherd Date: Mon, 17 Jun 2024 10:09:31 -0400 Subject: [PATCH] Add return if delta queue is empty SubscriptionExecutor now shares 1 delta queue between push, sms, user so we can return if it is empty --- src/core/executors/SubscriptionExecutor.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/executors/SubscriptionExecutor.ts b/src/core/executors/SubscriptionExecutor.ts index e770e3b01..8d46e0f86 100644 --- a/src/core/executors/SubscriptionExecutor.ts +++ b/src/core/executors/SubscriptionExecutor.ts @@ -12,6 +12,10 @@ export class SubscriptionExecutor extends ExecutorBase { } processDeltaQueue(): void { + if (this._deltaQueue.length === 0) { + return; + } + const modelSpecificDeltasArrays = this.separateDeltasByModelId(); modelSpecificDeltasArrays.forEach((deltasArray) => {