Skip to content

Commit

Permalink
Add return if delta queue is empty
Browse files Browse the repository at this point in the history
SubscriptionExecutor now shares 1 delta queue between push, sms, user so we can return if it is empty
  • Loading branch information
shepherd-l committed Jul 8, 2024
1 parent 3424f3d commit daa66e3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/executors/SubscriptionExecutor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ export class SubscriptionExecutor extends ExecutorBase {
}

processDeltaQueue(): void {
if (this._deltaQueue.length === 0) {
return;
}

const modelSpecificDeltasArrays = this.separateDeltasByModelId();

modelSpecificDeltasArrays.forEach((deltasArray) => {
Expand Down

0 comments on commit daa66e3

Please sign in to comment.