Skip to content

Commit 4cec82b

Browse files
authored
fix: missing fetch for blueprints, and minor logging changes (#1471)
* fix: blueprint fetch method missing * chore: improve logging
2 parents 9e60fc5 + 925b674 commit 4cec82b

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

meteor/server/api/ingest/mosDevice/mosIntegration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ export namespace MosIntegration {
163163

164164
const rundownExternalId = parseMosString(Action.RunningOrderID)
165165

166-
logger.info(`mosRoStoryInsert after "${Action.StoryID}" Stories: ${Stories.map((s) => s.ID)}`)
166+
logger.info(`mosRoStoryInsert before "${Action.StoryID}" Stories: ${Stories.map((s) => s.ID)}`)
167167
logger.debug(Action, Stories)
168168

169169
await runIngestOperation(studioId, IngestJobs.MosInsertStory, {

packages/job-worker/src/blueprints/cache.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,12 @@ export async function parseBlueprintDocument(
5454
let manifest: SomeBlueprintManifest
5555
try {
5656
const blueprintPath = `db:///blueprint/${blueprint.name || blueprint._id}-bundle.js`
57-
const context = vm.createContext({}, {})
57+
const context = vm.createContext(
58+
{
59+
fetch,
60+
},
61+
{}
62+
)
5863
const script = new vm.Script(
5964
`__run_result = ${blueprint.code}
6065
__run_result || blueprint`,

packages/job-worker/src/playout/timeline/multi-gateway.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,12 @@ export function deNowifyMultiGatewayTimeline(
5959

6060
// Because updatePlannedTimingsForPieceInstances changes start times of infinites, we can now run deNowifyInfinites()
6161
deNowifyInfinites(targetNowTime, objectsNotDeNowified, timelineObjsMap)
62+
63+
for (const obj of timelineObjs) {
64+
if (!Array.isArray(obj.enable) && obj.enable.start === 'now') {
65+
logger.error(`deNowifyMultiGatewayTimeline: "${obj.id}" still set to 'now'`)
66+
}
67+
}
6268
}
6369

6470
/**

0 commit comments

Comments
 (0)