File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
packages/job-worker/src/playout Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -368,7 +368,7 @@ export async function handleRestorePlaylistSnapshot(
368368 piece ?: unknown
369369 }
370370 > ( objs : undefined | T [ ] , updateId : boolean ) : T [ ] {
371- const updateIds = ( obj : T ) => {
371+ const updateIds = ( obj : T , updateId : boolean ) => {
372372 if ( obj . rundownId ) {
373373 obj . rundownId = getNewRundownId ( obj . rundownId )
374374 }
@@ -388,15 +388,15 @@ export async function handleRestorePlaylistSnapshot(
388388 }
389389
390390 if ( obj . part ) {
391- updateIds ( obj . part as any )
391+ updateIds ( obj . part as any , false )
392392 }
393393 if ( obj . piece ) {
394- updateIds ( obj . piece as any )
394+ updateIds ( obj . piece as any , false )
395395 }
396396
397397 return obj
398398 }
399- return ( objs || [ ] ) . map ( ( obj ) => updateIds ( obj ) )
399+ return ( objs || [ ] ) . map ( ( obj ) => updateIds ( obj , updateId ) )
400400 }
401401
402402 await Promise . all ( [
You can’t perform that action at this time.
0 commit comments