Skip to content

Commit d4e6ca4

Browse files
committed
fix: always call validateAdlibTestingPartInstanceProperties during syncIngestChangesToPartInstances
1 parent af75f8f commit d4e6ca4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/job-worker/src/ingest/syncChangesToPartInstance.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,10 +212,11 @@ export async function syncChangesToPartInstances(
212212
// TODO - these dont get shown to the user currently
213213
// TODO - old notes from the sync may need to be pruned, or we will end up with duplicates and 'stuck' notes?+
214214
existingPartInstance.appendNotes(newNotes)
215-
216-
validateAdlibTestingPartInstanceProperties(context, playoutModel, existingPartInstance)
217215
}
218216

217+
// Make sure an adlib-testing part is still labeled correctly. This could happen if the partInstance used any recently updated adlibs
218+
validateAdlibTestingPartInstanceProperties(context, playoutModel, existingPartInstance)
219+
219220
if (existingPartInstance.partInstance._id === playoutModel.playlist.currentPartInfo?.partInstanceId) {
220221
// This should be run after 'current', before 'next':
221222
await syncPlayheadInfinitesForNextPartInstance(

0 commit comments

Comments
 (0)