@@ -72,7 +72,7 @@ export function createInstancesStore(
7272 await instance . fetchDatabases ( { dataService } ) ;
7373 await Promise . all (
7474 instance . databases . map ( ( db ) => {
75- return db . fetchCollections ( { dataService, preferences } ) ;
75+ return db . fetchCollections ( { dataService } ) ;
7676 } )
7777 ) ;
7878 } catch ( error ) {
@@ -159,7 +159,7 @@ export function createInstancesStore(
159159 await instance . fetchDatabases ( { dataService, force : true } ) ;
160160 await Promise . allSettled (
161161 instance . databases . map ( ( db ) =>
162- db . fetchCollections ( { dataService, preferences , force : true } )
162+ db . fetchCollections ( { dataService, force : true } )
163163 )
164164 ) ;
165165 } catch ( err : any ) {
@@ -192,8 +192,8 @@ export function createInstancesStore(
192192 console . log ( 'Refresh Namespace Stats' ) ;
193193 // We don't care if this fails
194194 await Promise . allSettled ( [
195- db ?. fetch ( { dataService, preferences , force : true } ) ,
196- coll ?. fetch ( { dataService, preferences , force : true } ) ,
195+ db ?. fetch ( { dataService, force : true } ) ,
196+ coll ?. fetch ( { dataService, force : true } ) ,
197197 ] ) ;
198198 } catch ( error ) {
199199 log . warn (
@@ -239,11 +239,10 @@ export function createInstancesStore(
239239 // collection model updates
240240 console . log ( 'Maybe add and refresh' ) ;
241241 await db
242- . fetch ( { dataService, preferences , force : true } )
242+ . fetch ( { dataService, force : true } )
243243 . then ( ( ) => {
244244 return coll ?. fetch ( {
245245 dataService,
246- preferences,
247246 force : true ,
248247 // We only need to fetch info in case of new collection being created
249248 fetchInfo : newCollection ,
@@ -298,6 +297,7 @@ export function createInstancesStore(
298297 topologyDescription : getTopologyDescription (
299298 dataService . getLastSeenTopology ( )
300299 ) ,
300+ preferences,
301301 } ;
302302 const instance = instancesManager . createMongoDBInstanceForConnection (
303303 instanceConnectionId ,
@@ -347,7 +347,7 @@ export function createInstancesStore(
347347 connections . getDataServiceForConnection ( connectionId ) ;
348348 void instance . databases
349349 . get ( databaseId )
350- ?. fetchCollections ( { dataService, preferences } ) ;
350+ ?. fetchCollections ( { dataService } ) ;
351351 } catch ( error ) {
352352 log . warn (
353353 mongoLogId ( 1_001_000_323 ) ,
@@ -445,11 +445,9 @@ export function createInstancesStore(
445445 db . collections . remove ( coll ) ;
446446 MongoDBInstance . removeAllListeners ( coll ) ;
447447 // Update db stats to account for db stats affected by collection stats
448- void db
449- ?. fetch ( { dataService, preferences, force : true } )
450- . catch ( ( ) => {
451- // noop, we ignore stats fetching failures
452- } ) ;
448+ void db ?. fetch ( { dataService, force : true } ) . catch ( ( ) => {
449+ // noop, we ignore stats fetching failures
450+ } ) ;
453451 }
454452 } catch ( error ) {
455453 log . warn (
@@ -544,7 +542,7 @@ export function createInstancesStore(
544542 void instance . databases
545543 . get ( database )
546544 ?. collections . get ( namespace , '_id' )
547- ?. fetch ( { dataService, preferences , force : true } ) ;
545+ ?. fetch ( { dataService, force : true } ) ;
548546 } catch ( error ) {
549547 log . warn (
550548 mongoLogId ( 1_001_000_321 ) ,
0 commit comments