Skip to content

Commit

Permalink
fix: importing a snapshot loses rundown ordering SOFIE-2669 #1034
Browse files Browse the repository at this point in the history
  • Loading branch information
Julusian committed Nov 1, 2023
1 parent aa83b08 commit c6fb01c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/job-worker/src/playout/snapshot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,8 @@ export async function handleRestorePlaylistSnapshot(
}
}

snapshot.playlist.rundownIdsInOrder = snapshot.playlist.rundownIdsInOrder.map((id) => rundownIdMap.get(id) ?? id)

const rundownIds = snapshot.rundowns.map((r) => r._id)

// Apply the updates of any properties to any document
Expand Down

0 comments on commit c6fb01c

Please sign in to comment.