File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -365,6 +365,8 @@ async function updatePartInstancesSegmentIds(
365
365
366
366
const writeOps : AnyBulkWriteOperation < DBPartInstance > [ ] = [ ]
367
367
368
+ logger . debug ( `updatePartInstancesSegmentIds: renameRules: ${ JSON . stringify ( renameRules ) } ` )
369
+
368
370
for ( const [ newSegmentId , rule ] of rulesInOrder ) {
369
371
if ( rule . fromSegmentIds . length ) {
370
372
writeOps . push ( {
Original file line number Diff line number Diff line change @@ -345,6 +345,24 @@ export function getPieceInstancesForPart(
345
345
} )
346
346
. catch ( ( e ) => logger . error ( e ) )
347
347
348
+ context . directCollections . PartInstances . findOne ( {
349
+ _id : playingPartInstance . partInstance . _id ,
350
+ } )
351
+ . then ( ( partInstance ) => {
352
+ if ( ! partInstance ) {
353
+ logger . error (
354
+ `TROUBLESHOOT: Segment not found, no partInstance "${ playingPartInstance . partInstance . _id } " in DB`
355
+ )
356
+ } else {
357
+ logger . error (
358
+ `TROUBLESHOOT: Segment not found, partInstance "${ partInstance . _id } ": ${ JSON . stringify (
359
+ partInstance
360
+ ) } `
361
+ )
362
+ }
363
+ } )
364
+ . catch ( ( e ) => logger . error ( e ) )
365
+
348
366
throw new Error (
349
367
`Segment "${ playingPartInstance . partInstance . segmentId } " in Rundown "${
350
368
playingRundown . rundown . _id
You can’t perform that action at this time.
0 commit comments