mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-19 14:14:17 +00:00
Automation should use event store for data (#1962)
* fix: automation should use RuntimeStore for data * add: aux timer template help
This commit is contained in:
committed by
GitHub
parent
c1fcdf7065
commit
358ad79ae4
@@ -0,0 +1,10 @@
|
||||
import { RuntimeStore, runtimeStorePlaceholder } from 'ontime-types';
|
||||
import { deepmerge } from 'ontime-utils';
|
||||
|
||||
const baseStore: RuntimeStore = {
|
||||
...runtimeStorePlaceholder
|
||||
};
|
||||
|
||||
export function makeRuntimeStoreData(patch?: Partial<RuntimeStore>): RuntimeStore {
|
||||
return deepmerge(baseStore, patch) as RuntimeStore;
|
||||
}
|
||||
Reference in New Issue
Block a user