@nettee/beacon 0.1.10 → 0.1.11
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/run/orchestrator.js +4 -2
- package/package.json +1 -1
package/dist/run/orchestrator.js
CHANGED
|
@@ -113,7 +113,7 @@ export class RunOrchestrator {
|
|
|
113
113
|
else {
|
|
114
114
|
const current = await this.record(triggerKey);
|
|
115
115
|
if (current[field]?.state !== "pending") {
|
|
116
|
-
|
|
116
|
+
return;
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
119
|
await this.options.store.update(triggerKey, (current) => ({
|
|
@@ -329,7 +329,9 @@ export class RunOrchestrator {
|
|
|
329
329
|
(latest.run.state === "succeeded" || latest.run.state === "failed")) {
|
|
330
330
|
const outcome = latest.finalOutcome.content;
|
|
331
331
|
const missingReply = outcome.reply.kind === "text" && !latest.delivery;
|
|
332
|
-
const missingNotify = Boolean(outcome.notify) &&
|
|
332
|
+
const missingNotify = Boolean(outcome.notify) &&
|
|
333
|
+
Boolean(latest.notifyTarget) &&
|
|
334
|
+
!latest.notifyDelivery;
|
|
333
335
|
if (missingReply || missingNotify) {
|
|
334
336
|
await this.deliverOutcome(latest.triggerKey);
|
|
335
337
|
}
|