Skip to content

Commit c42e4cb

Browse files
committed
chore: rename to clarify scope
1 parent 333d401 commit c42e4cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/job-worker/src/playout/snapshot.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ export async function handleRestorePlaylistSnapshot(
368368
piece?: unknown
369369
}
370370
>(objs: undefined | T[], updateId: boolean): T[] {
371-
const updateIds = (obj: T, updateId: boolean) => {
371+
const updateIds = (obj: T, updateOwnId: boolean) => {
372372
if (obj.rundownId) {
373373
obj.rundownId = getNewRundownId(obj.rundownId)
374374
}
@@ -383,7 +383,7 @@ export async function handleRestorePlaylistSnapshot(
383383
obj.partInstanceId = partInstanceIdMap.get(obj.partInstanceId) || getRandomId()
384384
}
385385

386-
if (updateId) {
386+
if (updateOwnId) {
387387
obj._id = getRandomId()
388388
}
389389

0 commit comments

Comments
 (0)