@dudousxd/nestjs-durable-core 0.28.2 → 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 +11 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +11 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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",
|