@@ -53,7 +53,6 @@ import {
5353 getPackageContainerPackageId ,
5454} from '@sofie-automation/corelib/dist/dataModel/PackageContainerPackageStatus'
5555import { PackageInfoDB , getPackageInfoId } from '@sofie-automation/corelib/dist/dataModel/PackageInfos'
56- import { checkStudioExists } from '../optimizations'
5756import { CoreRundownPlaylistSnapshot } from '@sofie-automation/corelib/dist/snapshots'
5857import { QueueStudioJob } from '../worker/worker'
5958import { StudioJobs } from '@sofie-automation/corelib/dist/worker/studio'
@@ -93,6 +92,11 @@ import {
9392import { getCoreSystemAsync } from '../coreSystem/collection'
9493import { executePeripheralDeviceFunction } from './peripheralDevice/executeFunction'
9594import { verifyHashedToken } from './singleUseTokens'
95+ import {
96+ IngestDataCacheObjRundown ,
97+ IngestDataCacheObjSegment ,
98+ IngestDataCacheObjPart ,
99+ } from '@sofie-automation/corelib/dist/dataModel/IngestDataCache'
96100
97101interface 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