Skip to content

Commit

Permalink
fix: SOF-941 add missing awaits
Browse files Browse the repository at this point in the history
  • Loading branch information
ianshade committed Jun 20, 2022
1 parent 664da58 commit 7fb1106
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/rundown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,11 @@ export class Rundown implements VRundown {
): Promise<VElement> {
// TODO ensure that a playlist is created with sub-element "elements"
if (isInternalElement(elementId)) {
this.assertInternalElementDoesNotExist(elementId)
await this.assertInternalElementDoesNotExist(elementId)
return this.createInternalElement(elementId, templateName as string, textFields as string[], channel)
} else {
this.checkChannelMapWasBuilt()
this.assertExternalElementDoesNotExist(elementId)
await this.checkChannelMapWasBuilt()
await this.assertExternalElementDoesNotExist(elementId)
return this.createExternalElement(elementId)
}
}
Expand Down

0 comments on commit 7fb1106

Please sign in to comment.