Skip to content

Commit

Permalink
fix: flow/setDelay uses "done", not "complete"
Browse files Browse the repository at this point in the history
  • Loading branch information
hybridherbst committed Nov 13, 2024
1 parent fd48de6 commit 66e6f97
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/BasicBehaveEngine/nodes/flow/SetDelay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export class SetDelay extends BehaveEngineNode {
} else {
const delayIndex = this.graphEngine.scheduledDelays.length;
const delayId = setTimeout(() => {
this.addEventToWorkQueue(this.flows.completed);
this.addEventToWorkQueue(this.flows.done);
}, duration * 1000);
this.graphEngine.pushScheduledDelay(delayId);
this._runningDelayIndices.push(delayIndex);
Expand Down
2 changes: 1 addition & 1 deletion src/authoring/AuthoringNodeSpecs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -984,7 +984,7 @@ export const flowNodeSpecs: IAuthoringNode[] = [
output: {
flows: [
{
id: "completed",
id: "done",
description: "The flow to be followed after the delay",
},
{
Expand Down

0 comments on commit 66e6f97

Please sign in to comment.