@@ -10,8 +10,6 @@ import { MeteorCall } from '../methods'
1010import { ClientAPI } from '@sofie-automation/meteor-lib/dist/api/client'
1111import { UserAction } from '@sofie-automation/meteor-lib/dist/userAction'
1212import { TFunction } from 'i18next'
13- import { Tracker } from 'meteor/tracker'
14-
1513import { logger } from '../../logging'
1614import { IBaseFilterLink , IRundownPlaylistFilterLink } from '@sofie-automation/blueprints-integration'
1715import { PartId , StudioId } from '@sofie-automation/corelib/dist/dataModel/Ids'
@@ -48,23 +46,19 @@ class MeteorTriggersCollectionWrapper<DBInterface extends { _id: ProtectedString
4846 }
4947
5048 async findFetchAsync (
51- computation : TriggerTrackerComputation | null ,
49+ _computation : TriggerTrackerComputation | null ,
5250 selector : any ,
5351 options ?: any
5452 ) : Promise < Array < DBInterface > > {
55- return Tracker . withComputation ( computation as Tracker . Computation | null , async ( ) => {
56- return this . #collection. findFetchAsync ( selector , options )
57- } )
53+ return this . #collection. findFetchAsync ( selector , options )
5854 }
5955
6056 async findOneAsync (
61- computation : TriggerTrackerComputation | null ,
57+ _computation : TriggerTrackerComputation | null ,
6258 selector : any ,
6359 options ?: any
6460 ) : Promise < DBInterface | undefined > {
65- return Tracker . withComputation ( computation as Tracker . Computation | null , async ( ) => {
66- return this . #collection. findOneAsync ( selector , options )
67- } )
61+ return this . #collection. findOneAsync ( selector , options )
6862 }
6963}
7064
@@ -102,8 +96,8 @@ export const MeteorTriggersContext: TriggersContext = {
10296 )
10397 } ,
10498
105- withComputation : async ( computation , func ) => {
106- return Tracker . withComputation ( computation as Tracker . Computation | null , func )
99+ withComputation : async ( _computation , func ) => {
100+ return func ( )
107101 } ,
108102
109103 memoizedIsolatedAutorun : async < TArgs extends any [ ] , TRes > (
0 commit comments