From db956f7955f82d8600a7ee6450981c46028961fd Mon Sep 17 00:00:00 2001 From: Carlos Valente Date: Thu, 3 Oct 2024 23:04:40 +0200 Subject: [PATCH] refactor: await init rundown --- apps/server/src/services/project-service/ProjectService.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/server/src/services/project-service/ProjectService.ts b/apps/server/src/services/project-service/ProjectService.ts index 70c37beea2..1046c795d9 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;