@dudousxd/nestjs-durable-core 0.28.1 → 0.29.0

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
@@ -2486,6 +2486,17 @@ var WorkflowEngine = class {
2486
2486
  error
2487
2487
  };
2488
2488
  }
2489
+ if (decision.status === "cancelled") {
2490
+ await this.applyCommands(run, decision.commands);
2491
+ await this.store.updateRun(run.id, {
2492
+ status: "cancelled",
2493
+ updatedAt: /* @__PURE__ */ new Date()
2494
+ });
2495
+ return {
2496
+ runId: run.id,
2497
+ status: "cancelled"
2498
+ };
2499
+ }
2489
2500
  const wakeAt = await this.applyCommands(run, decision.commands);
2490
2501
  await this.store.updateRun(run.id, {
2491
2502
  status: "suspended",
@@ -3629,9 +3640,9 @@ function attributeOperand(filter) {
3629
3640
  __name(attributeOperand, "attributeOperand");
3630
3641
 
3631
3642
  // src/tokens.ts
3632
- var STATE_STORE = Symbol("nestjs-durable:STATE_STORE");
3633
- var TRANSPORT = Symbol("nestjs-durable:TRANSPORT");
3634
- var DURABLE_OPTIONS = Symbol("nestjs-durable:DURABLE_OPTIONS");
3643
+ var STATE_STORE = Symbol.for("nestjs-durable:STATE_STORE");
3644
+ var TRANSPORT = Symbol.for("nestjs-durable:TRANSPORT");
3645
+ var DURABLE_OPTIONS = Symbol.for("nestjs-durable:DURABLE_OPTIONS");
3635
3646
 
3636
3647
  // src/testing/in-memory-state-store.ts
3637
3648
  var InMemoryStateStore = class {