File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed
meteor/server/publications Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,6 @@ import {
36
36
PeripheralDevicePubSub ,
37
37
PeripheralDevicePubSubCollectionsNames ,
38
38
} from '@sofie-automation/shared-lib/dist/pubsub/peripheralDevice'
39
- import { PackageInfoDB } from '@sofie-automation/corelib/dist/dataModel/PackageInfos'
40
39
41
40
meteorPublish ( CorelibPubSub . studios , async function ( studioIds : StudioId [ ] | null , token : string | undefined ) {
42
41
check ( studioIds , Match . Maybe ( Array ) )
@@ -118,13 +117,11 @@ meteorPublish(
118
117
}
119
118
)
120
119
121
- meteorPublish ( CorelibPubSub . packageInfos , async function ( deviceId , token ) {
120
+ meteorPublish ( CorelibPubSub . packageInfos , async function ( deviceId : PeripheralDeviceId , token : string | undefined ) {
122
121
if ( ! deviceId ) throw new Meteor . Error ( 400 , 'deviceId argument missing' )
123
- const modifier : FindOptions < PackageInfoDB > = {
124
- fields : { } ,
125
- }
122
+
126
123
if ( await PeripheralDeviceReadAccess . peripheralDeviceContent ( deviceId , { userId : this . userId , token } ) ) {
127
- return PackageInfos . findWithCursor ( { deviceId } , modifier )
124
+ return PackageInfos . findWithCursor ( { deviceId } )
128
125
}
129
126
return null
130
127
} )
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ import {
43
43
SegmentPlayoutId ,
44
44
ShowStyleVariantId ,
45
45
} from './dataModel/Ids'
46
- import { PackageInfoDB } from '@sofie-automation/corelib/src /dataModel/PackageInfos'
46
+ import { PackageInfoDB } from '. /dataModel/PackageInfos'
47
47
48
48
/**
49
49
* Ids of possible DDP subscriptions for any the UI and gateways accessing the Rundown & RundownPlaylist model.
@@ -333,7 +333,7 @@ export interface CorelibPubSubTypes {
333
333
studioIds : StudioId [ ] ,
334
334
token ?: string
335
335
) => CollectionName . PackageContainerStatuses
336
- [ CorelibPubSub . packageInfos ] : ( deviceId : PeripheralDeviceId , token ?: string ) => PackageInfoDB
336
+ [ CorelibPubSub . packageInfos ] : ( deviceId : PeripheralDeviceId , token ?: string ) => CollectionName . PackageInfos
337
337
}
338
338
339
339
export type CorelibPubSubCollections = {
@@ -349,6 +349,7 @@ export type CorelibPubSubCollections = {
349
349
[ CollectionName . IngestDataCache ] : IngestDataCacheObj
350
350
[ CollectionName . PartInstances ] : DBPartInstance
351
351
[ CollectionName . PackageContainerStatuses ] : PackageContainerStatusDB
352
+ [ CollectionName . PackageInfos ] : PackageInfoDB
352
353
[ CollectionName . Parts ] : DBPart
353
354
[ CollectionName . PeripheralDevices ] : PeripheralDevice
354
355
[ CollectionName . PieceInstances ] : PieceInstance
You can’t perform that action at this time.
0 commit comments