We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e752e23 commit 9e24299Copy full SHA for 9e24299
packages/job-worker/src/ingest/commit.ts
@@ -402,7 +402,10 @@ async function updatePartInstancesSegmentIds(
402
if (writeOps.length) await context.directCollections.PartInstances.bulkWrite(writeOps)
403
404
// Double check that there are no parts using the old segment ids:
405
- const oldSegmentIds = Array.from(renameRules.keys())
+ const oldSegmentIds: SegmentId[] = []
406
+ for (const renameRule of renameRules.values()) {
407
+ oldSegmentIds.push(...renameRule.fromSegmentIds)
408
+ }
409
const [badPartInstances, badParts] = await Promise.all([
410
await context.directCollections.PartInstances.findFetch({
411
rundownId: ingestModel.rundownId,
0 commit comments