Refactor: require trigger in all events objects (#1636)

* reqire trigger in all events

* use structuredClone when cloning an event
This commit is contained in:
Alex Christoffer Rasmussen
2025-06-12 09:54:57 +02:00
committed by GitHub
parent 02c30c9681
commit 2a5b053d97
7 changed files with 31 additions and 5 deletions
@@ -54,7 +54,7 @@ export type OntimeEvent = OntimeBaseEvent & {
timeWarning: number;
timeDanger: number;
custom: EntryCustomFields;
triggers?: Trigger[];
triggers: Trigger[];
parent: EntryId | null;
// !==== RUNTIME METADATA ====! //
revision: number;