Skip to content

Commit 24dccd6

Browse files
committed
chore: lint fix
1 parent ef01346 commit 24dccd6

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

meteor/server/api/snapshot.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ import {
5353
getPackageContainerPackageId,
5454
} from '@sofie-automation/corelib/dist/dataModel/PackageContainerPackageStatus'
5555
import { PackageInfoDB, getPackageInfoId } from '@sofie-automation/corelib/dist/dataModel/PackageInfos'
56-
import { checkStudioExists } from '../optimizations'
5756
import { CoreRundownPlaylistSnapshot } from '@sofie-automation/corelib/dist/snapshots'
5857
import { QueueStudioJob } from '../worker/worker'
5958
import { StudioJobs } from '@sofie-automation/corelib/dist/worker/studio'
@@ -93,6 +92,11 @@ import {
9392
import { getCoreSystemAsync } from '../coreSystem/collection'
9493
import { executePeripheralDeviceFunction } from './peripheralDevice/executeFunction'
9594
import { verifyHashedToken } from './singleUseTokens'
95+
import {
96+
IngestDataCacheObjRundown,
97+
IngestDataCacheObjSegment,
98+
IngestDataCacheObjPart,
99+
} from '@sofie-automation/corelib/dist/dataModel/IngestDataCache'
96100

97101
interface RundownPlaylistSnapshot extends CoreRundownPlaylistSnapshot {
98102
versionExtended: string | undefined
@@ -539,9 +543,9 @@ async function ingestFromSnapshot(
539543
// Read the ingestData from the snapshot
540544
const ingestData = playlistSnapshot.ingestData
541545

542-
const rundownData = ingestData.filter((e) => e.type === 'rundown')
543-
const segmentData = ingestData.filter((e) => e.type === 'segment')
544-
const partData = ingestData.filter((e) => e.type === 'part')
546+
const rundownData = ingestData.filter((e) => e.type === 'rundown') as IngestDataCacheObjRundown[]
547+
const segmentData = ingestData.filter((e) => e.type === 'segment') as IngestDataCacheObjSegment[]
548+
const partData = ingestData.filter((e) => e.type === 'part') as IngestDataCacheObjPart[]
545549

546550
if (rundownData.length === 0) throw new Meteor.Error(402, `No rundowns found in ingestData`)
547551

0 commit comments

Comments
 (0)