Apply project (#843)

This commit is contained in:
Carlos Valente
2024-03-22 12:52:55 +01:00
committed by GitHub
parent 8c5aaa0901
commit 6178ed1e4e
4 changed files with 80 additions and 70 deletions
@@ -210,7 +210,7 @@ function updateRuntimeOnChange() {
/**
* Notify services of changes in the rundown
*/
export function notifyChanges(options: { timer?: boolean | string[]; external?: boolean }) {
function notifyChanges(options: { timer?: boolean | string[]; external?: boolean }) {
if (options.timer) {
const playableEvents = getPlayableEvents();
@@ -243,12 +243,3 @@ export async function initRundown(rundown: OntimeRundown, customFields: CustomFi
// notify timer of change
notifyChanges({ timer: true });
}
/**
* Overrides the rundown with the given
* @param rundown
*/
export async function setRundown(rundown: OntimeRundown) {
await cache.setRundown(rundown);
notifyChanges({ timer: true });
}