Skip to content

Commit

Permalink
fix: remove test for active status from purge operation
Browse files Browse the repository at this point in the history
  • Loading branch information
sparkpunkd committed Dec 17, 2019
1 parent 0c48c84 commit 242a31f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/rundown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -276,10 +276,10 @@ ${entries}
}

async purge (): Promise<PepResponse> {
let playlist = await this.mse.getPlaylist(this.playlist)
if (playlist.active_profile.value) {
throw new Error(`Cannot purge an active profile.`)
}
// let playlist = await this.mse.getPlaylist(this.playlist)
// if (playlist.active_profile.value) {
// throw new Error(`Cannot purge an active profile.`)
// }
await this.pep.replace(`/storage/shows/{${this.show}}/elements`, '<elements/>')
await this.pep.replace(`/storage/playlists/{${this.playlist}}/elements`, '<elements/>')
return { id: '*', status: 'ok' } as PepResponse
Expand Down

0 comments on commit 242a31f

Please sign in to comment.