Skip to content

Commit

Permalink
SOF-1912 Update externalId to include SegmentExternalId so that Core …
Browse files Browse the repository at this point in the history
…can find the AdLibActions when updating Segment Ranks
  • Loading branch information
LindvedKrvang committed Apr 26, 2024
1 parent 3d4a14b commit b6271e0
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export abstract class PilotGraphicGenerator extends Graphic {
segmentExternalId: this.segmentExternalId
}
return {
externalId: generateExternalId(this.core, userData),
externalId: `${this.segmentExternalId}_${generateExternalId(this.core, userData)}`,
actionId: AdlibActionType.SELECT_FULL_GRAFIK,
userData,
userDataManifest: {},
Expand Down
2 changes: 1 addition & 1 deletion src/tv2_afvd_showstyle/helpers/pieces/adlib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export async function EvaluateAdLib(
segmentExternalId: partDefinition.segmentExternalId
}
actions.push({
externalId: generateExternalId(context.core, userData),
externalId: `${partDefinition.segmentExternalId}_${generateExternalId(context.core, userData)}`,
actionId: AdlibActionType.SELECT_DVE,
userData,
userDataManifest: {},
Expand Down
2 changes: 1 addition & 1 deletion src/tv2_afvd_showstyle/helpers/pieces/dve.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export function EvaluateDVE(
segmentExternalId: partDefinition.segmentExternalId
}
actions.push({
externalId: generateExternalId(context.core, userData),
externalId: `${partDefinition.segmentExternalId}_${generateExternalId(context.core, userData)}`,
actionId: AdlibActionType.SELECT_DVE,
userData,
userDataManifest: {},
Expand Down
2 changes: 1 addition & 1 deletion src/tv2_offtube_showstyle/cues/OfftubeAdlib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export async function OfftubeEvaluateAdLib(
segmentExternalId: partDefinition.segmentExternalId
}
actions.push({
externalId: generateExternalId(context.core, userData),
externalId: `${partDefinition.segmentExternalId}_${generateExternalId(context.core, userData)}`,
actionId: AdlibActionType.SELECT_DVE,
userData,
userDataManifest: {},
Expand Down
2 changes: 1 addition & 1 deletion src/tv2_offtube_showstyle/cues/OfftubeDVE.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export function OfftubeEvaluateDVE(
segmentExternalId: partDefinition.segmentExternalId
}
actions.push({
externalId: generateExternalId(context.core, userData),
externalId: `${partDefinition.segmentExternalId}_${generateExternalId(context.core, userData)}`,
actionId: AdlibActionType.SELECT_DVE,
userData,
userDataManifest: {},
Expand Down

0 comments on commit b6271e0

Please sign in to comment.