-
Notifications
You must be signed in to change notification settings - Fork 55
feat: replace wasActive
in onRundownActivate with context
#1514
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: release53
Are you sure you want to change the base?
Changes from 1 commit
35a99f1
40e014b
5220fb0
29c8157
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,8 +8,6 @@ import { | |
} from '@sofie-automation/corelib/dist/worker/studio' | ||
import { JobContext } from '../jobs' | ||
import { runJobWithPlayoutModel } from './lock' | ||
import { resetRundownPlaylist } from './lib' | ||
import { updateTimeline } from './timeline/generate' | ||
import { getActiveRundownPlaylistsInStudioFromDb } from '../studio/lib' | ||
import { | ||
activateRundownPlaylist, | ||
|
@@ -53,9 +51,7 @@ export async function handlePrepareRundownPlaylistForBroadcast( | |
await checkNoOtherPlaylistsActive(context, playlist) | ||
}, | ||
async (playoutModel) => { | ||
await resetRundownPlaylist(context, playoutModel) | ||
|
||
await activateRundownPlaylist(context, playoutModel, true) // Activate rundownPlaylist (rehearsal) | ||
await activateRundownPlaylist(context, playoutModel, true, true) // Activate rundownPlaylist (rehearsal) | ||
} | ||
) | ||
} | ||
|
@@ -110,15 +106,7 @@ export async function handleResetRundownPlaylist(context: JobContext, data: Rese | |
} | ||
}, | ||
async (playoutModel) => { | ||
await resetRundownPlaylist(context, playoutModel) | ||
|
||
if (data.activate) { | ||
// Do the activation | ||
await activateRundownPlaylist(context, playoutModel, data.activate !== 'active') // Activate rundown | ||
} else if (playoutModel.playlist.activationId) { | ||
// Only update the timeline if this is the active playlist | ||
await updateTimeline(context, playoutModel) | ||
} | ||
await activateRundownPlaylist(context, playoutModel, data.activate !== 'active', true) // Activate rundown | ||
|
||
} | ||
) | ||
} | ||
|
Uh oh!
There was an error while loading. Please reload this page.