Skip to content

Commit f63c164

Browse files
committed
wip
1 parent 7025166 commit f63c164

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

packages/corelib/src/dataModel/ExpectedPackages.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,10 @@ export interface ExpectedPackageDB {
5959
ingestSources: ExpectedPackageIngestSource[]
6060

6161
playoutSources: {
62-
/** Any playout PieceInstance. This is limited to the current and next partInstances */ // nocommit - confirm this claim
62+
/**
63+
* Any playout PieceInstance. This can be any non-reset pieceInstance in the rundown.
64+
* Due to the update flow, this can contain some stale data for a few seconds after a playout operation.
65+
*/
6366
pieceInstanceIds: PieceInstanceId[]
6467
}
6568
}

packages/job-worker/src/ingest/model/implementation/SaveIngestModel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ async function writeExpectedPackagesChangesForRundown(
114114
{
115115
projection: {
116116
_id: 1,
117-
playoutSources: 1, // nocommit - can this be made just a count?
117+
playoutSources: 1, // This feels a bit excessive, but the whole object is needed for `isPackageReferencedByPlayout`
118118
},
119119
}
120120
)) as Pick<ExpectedPackageDB, '_id' | 'created' | 'playoutSources'>[]

0 commit comments

Comments
 (0)