diff --git a/meteor/server/api/integration/rundownContentStatus.ts b/meteor/server/api/integration/rundownContentStatus.ts index feae14e4c6..40b4086c78 100644 --- a/meteor/server/api/integration/rundownContentStatus.ts +++ b/meteor/server/api/integration/rundownContentStatus.ts @@ -16,6 +16,7 @@ import { } from '../../publications/pieceContentStatusUI/checkPieceContentStatus' import { PieceContentStatusMessageFactory } from '../../publications/pieceContentStatusUI/messageFactory' import { interpollateTranslation, translateMessage } from '@sofie-automation/corelib/dist/TranslatableMessage' +import { applyAndValidateOverrides } from '@sofie-automation/corelib/dist/settings/objectWithOverrides' function formatStatusReason( status: Awaited>[0] @@ -75,10 +76,14 @@ export namespace RundownContentStatusIntegration { invalid: { $ne: true }, }) + const sourceLayers = showStyleBase + ? applyAndValidateOverrides(showStyleBase.sourceLayersWithOverrides).obj + : undefined + const pieces: RundownPieceContentStatus[] = [] for (const pieceDoc of pieceDocs) { - const sourceLayer = showStyleBase?.sourceLayers?.[pieceDoc.sourceLayerId] + const sourceLayer = sourceLayers?.[pieceDoc.sourceLayerId] if (!sourceLayer) { continue } diff --git a/meteor/server/api/peripheralDevice.ts b/meteor/server/api/peripheralDevice.ts index 85600c1092..7189bd6f15 100644 --- a/meteor/server/api/peripheralDevice.ts +++ b/meteor/server/api/peripheralDevice.ts @@ -1435,11 +1435,7 @@ class ServerPeripheralDeviceAPIClass extends MethodContextAPI implements NewPeri ) { await PackageManagerIntegration.removePackageInfo(this, deviceId, deviceToken, type, packageId, removeDelay) } - async getContentStatusForRundown( - deviceId: PeripheralDeviceId, - deviceToken: string, - rundownExternalId: string - ) { + async getContentStatusForRundown(deviceId: PeripheralDeviceId, deviceToken: string, rundownExternalId: string) { return RundownContentStatusIntegration.getContentStatusForRundown( this, deviceId,