Tested and fixed triggers in new action engine

This commit is contained in:
Thaum Rystra
2024-05-14 10:02:54 +02:00
parent 4a52c3af19
commit 195704ed7a
8 changed files with 154 additions and 7 deletions

View File

@@ -0,0 +1,16 @@
import { EngineAction } from '/imports/api/engine/action/EngineActions';
import { applyDefaultAfterPropTasks } from '/imports/api/engine/action/functions/applyTaskGroups';
import { PropTask } from '/imports/api/engine/action/tasks/Task';
import getPropertyTitle from '/imports/api/utility/getPropertyTitle';
export default async function applyTriggerProperty(
task: PropTask, action: EngineAction, result, userInput
): Promise<void> {
const prop = task.prop;
result.appendLog({
name: getPropertyTitle(prop),
...prop.silent && { silenced: true },
})
return applyDefaultAfterPropTasks(action, prop, task.targetIds, userInput);
}