@dudousxd/nestjs-durable 0.52.1 → 0.52.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -2147,7 +2147,12 @@ var TimerPoller = class {
2147
2147
  async onApplicationBootstrap() {
2148
2148
  for (const s of this.options.schedules ?? []) workflowName3(s.workflow);
2149
2149
  if (!isDrivingOperator(this.options)) return;
2150
+ this.engine.consumeRuns?.();
2150
2151
  this.unsubscribeEnqueued = this.engine.onEnqueued((runId) => {
2152
+ if (typeof this.engine.runEnqueued === "function") {
2153
+ this.engine.runEnqueued(runId);
2154
+ return;
2155
+ }
2151
2156
  void this.engine.runOne(runId).catch((error) => {
2152
2157
  console.error(`[nestjs-durable] could not run enqueued run ${runId}:`, error);
2153
2158
  });