Skip to content

Commit

Permalink
fix(effect-queue-status): fixed return type
Browse files Browse the repository at this point in the history
  • Loading branch information
alfw committed Sep 6, 2024
1 parent a689ced commit fa76c2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/backend/variables/builtin/metadata/effect-queue-status.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ const model: ReplaceVariable = {
description: "The status of the effect queue.",
triggers: triggers,
categories: [VariableCategory.TRIGGER],
possibleDataOutput: [OutputDataType.TEXT]
possibleDataOutput: [OutputDataType.BOOLEAN, OutputDataType.NULL]
},
evaluator: (trigger) => {
const queueId = trigger?.metadata?.eventData?.effectQueueId;
const effectQueue = effectQueueManager.getItem(queueId);

return effectQueue?.active ?? "Unknown";
return effectQueue?.active ?? null;
}
};

Expand Down

0 comments on commit fa76c2f

Please sign in to comment.