Skip to content

Commit ba50ec5

Browse files
authored
Merge pull request #1637 from evs-broadcast/contribute/adlib-publicdata-query
fix: add publicData property to query results for Adlib Actions
2 parents 1f04259 + 1c2df5e commit ba50ec5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/job-worker/src/playout/adlibAction.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,16 +78,16 @@ export async function executeAdlibActionAndSaveModel(
7878

7979
const [adLibAction, baselineAdLibAction, bucketAdLibAction] = await Promise.all([
8080
context.directCollections.AdLibActions.findOne(data.actionDocId as AdLibActionId, {
81-
projection: { _id: 1, privateData: 1 },
81+
projection: { _id: 1, privateData: 1, publicData: 1 },
8282
}),
8383
context.directCollections.RundownBaselineAdLibActions.findOne(
8484
data.actionDocId as RundownBaselineAdLibActionId,
8585
{
86-
projection: { _id: 1, privateData: 1 },
86+
projection: { _id: 1, privateData: 1, publicData: 1 },
8787
}
8888
),
8989
context.directCollections.BucketAdLibActions.findOne(data.actionDocId as BucketAdLibActionId, {
90-
projection: { _id: 1, privateData: 1 },
90+
projection: { _id: 1, privateData: 1, publicData: 1 },
9191
}),
9292
])
9393
const adLibActionDoc = adLibAction ?? baselineAdLibAction ?? bucketAdLibAction

0 commit comments

Comments
 (0)