Skip to content

Commit e3ed010

Browse files
author
Ivan Maretić
committed
fix: add playlistExternalId to ingestRundown
1 parent 0b601af commit e3ed010

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

meteor/server/api/rest/v1/ingest.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ class IngestServerAPI implements IngestRestAPI {
475475

476476
await runIngestOperation(studio._id, IngestJobs.UpdateRundown, {
477477
rundownExternalId: ingestRundown.externalId,
478-
ingestRundown: ingestRundown,
478+
ingestRundown: { ...ingestRundown, playlistExternalId: playlistId },
479479
isCreateAction: true,
480480
rundownSource: {
481481
type: 'restApi',
@@ -520,7 +520,7 @@ class IngestServerAPI implements IngestRestAPI {
520520

521521
return runIngestOperation(studio._id, IngestJobs.UpdateRundown, {
522522
rundownExternalId: ingestRundown.externalId,
523-
ingestRundown: ingestRundown,
523+
ingestRundown: { ...ingestRundown, playlistExternalId: playlist.externalId },
524524
isCreateAction: true,
525525
rundownSource: {
526526
type: 'restApi',
@@ -560,7 +560,7 @@ class IngestServerAPI implements IngestRestAPI {
560560

561561
await runIngestOperation(studio._id, IngestJobs.UpdateRundown, {
562562
rundownExternalId: existingRundown.externalId,
563-
ingestRundown: ingestRundown,
563+
ingestRundown: { ...ingestRundown, playlistExternalId: playlist.externalId },
564564
isCreateAction: true,
565565
rundownSource: {
566566
type: 'restApi',

packages/job-worker/src/ingest/runOperation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ async function updateSofieIngestRundown(
278278
payload: undefined,
279279
userEditStates: {},
280280
rundownSource: nrcsIngestRundown.rundownSource,
281-
playlistExternalId: undefined,
281+
playlistExternalId: nrcsIngestRundown.playlistExternalId,
282282
} satisfies Complete<SofieIngestRundownWithSource>,
283283
false
284284
)

0 commit comments

Comments
 (0)