Skip to content

Commit

Permalink
refactor: await init rundown
Browse files Browse the repository at this point in the history
  • Loading branch information
cpvalente committed Oct 9, 2024
1 parent 887e5c4 commit db956f7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/server/src/services/project-service/ProjectService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -334,7 +334,7 @@ export async function patchCurrentProject(data: Partial<DatabaseModel>) {
// ... 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;
Expand Down

0 comments on commit db956f7

Please sign in to comment.