@dudousxd/nestjs-durable-core 0.67.0 → 0.67.1

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.cjs CHANGED
@@ -1885,12 +1885,10 @@ var SingletonGate = class {
1885
1885
  ]
1886
1886
  })).sort((a, b) => a.createdAt.getTime() - b.createdAt.getTime() || a.id.localeCompare(b.id));
1887
1887
  for (const next of gated.slice(0, cfg.limit ?? 1)) {
1888
- if (next.wakeAt != null) {
1889
- await this.deps.store.updateRun(next.id, {
1890
- wakeAt: void 0,
1891
- updatedAt: /* @__PURE__ */ new Date()
1892
- }).catch(() => void 0);
1893
- }
1888
+ await this.deps.store.updateRun(next.id, {
1889
+ wakeAt: this.deps.clock(),
1890
+ updatedAt: /* @__PURE__ */ new Date()
1891
+ }).catch(() => void 0);
1894
1892
  this.deps.dispatch(next.id);
1895
1893
  }
1896
1894
  }