diff --git a/apps/server/src/services/project-service/ProjectService.ts b/apps/server/src/services/project-service/ProjectService.ts index 70c37beea..1046c795d 100644 --- a/apps/server/src/services/project-service/ProjectService.ts +++ b/apps/server/src/services/project-service/ProjectService.ts @@ -172,7 +172,7 @@ export async function loadProjectFile(name: string) { const { rundown, customFields, osc, http } = result.data; // apply the rundown - initRundown(rundown, customFields); + await initRundown(rundown, customFields); // apply integrations oscIntegration.init(osc); @@ -246,7 +246,7 @@ export async function renameProjectFile(originalFile: string, newFilename: strin const { rundown, customFields, osc, http } = result.data; // apply the rundown - initRundown(rundown, customFields); + await initRundown(rundown, customFields); // apply integrations oscIntegration.init(osc); @@ -334,7 +334,7 @@ export async function patchCurrentProject(data: Partial) { // ... but rundown and custom fields need to be checked if (rundown != null) { const result = parseRundown(data); - initRundown(result.rundown, result.customFields); + await initRundown(result.rundown, result.customFields); } return newData;