mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-19 22:24:11 +00:00
refactor: await init rundown
This commit is contained in:
committed by
Carlos Valente
parent
887e5c448e
commit
db956f7955
@@ -172,7 +172,7 @@ export async function loadProjectFile(name: string) {
|
|||||||
const { rundown, customFields, osc, http } = result.data;
|
const { rundown, customFields, osc, http } = result.data;
|
||||||
|
|
||||||
// apply the rundown
|
// apply the rundown
|
||||||
initRundown(rundown, customFields);
|
await initRundown(rundown, customFields);
|
||||||
|
|
||||||
// apply integrations
|
// apply integrations
|
||||||
oscIntegration.init(osc);
|
oscIntegration.init(osc);
|
||||||
@@ -246,7 +246,7 @@ export async function renameProjectFile(originalFile: string, newFilename: strin
|
|||||||
const { rundown, customFields, osc, http } = result.data;
|
const { rundown, customFields, osc, http } = result.data;
|
||||||
|
|
||||||
// apply the rundown
|
// apply the rundown
|
||||||
initRundown(rundown, customFields);
|
await initRundown(rundown, customFields);
|
||||||
|
|
||||||
// apply integrations
|
// apply integrations
|
||||||
oscIntegration.init(osc);
|
oscIntegration.init(osc);
|
||||||
@@ -334,7 +334,7 @@ export async function patchCurrentProject(data: Partial<DatabaseModel>) {
|
|||||||
// ... but rundown and custom fields need to be checked
|
// ... but rundown and custom fields need to be checked
|
||||||
if (rundown != null) {
|
if (rundown != null) {
|
||||||
const result = parseRundown(data);
|
const result = parseRundown(data);
|
||||||
initRundown(result.rundown, result.customFields);
|
await initRundown(result.rundown, result.customFields);
|
||||||
}
|
}
|
||||||
|
|
||||||
return newData;
|
return newData;
|
||||||
|
|||||||
Reference in New Issue
Block a user