From 38d0ad1aaddba5c133d27e5733633bb3d857a1f8 Mon Sep 17 00:00:00 2001 From: Noel De Martin Date: Wed, 17 Jan 2024 10:43:04 +0100 Subject: [PATCH] MOBILE-4304 core: Remove redundant generics --- src/core/features/course/services/course.ts | 2 +- .../pushnotifications/services/pushnotifications.ts | 2 +- src/core/services/filepool.ts | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/core/features/course/services/course.ts b/src/core/features/course/services/course.ts index 7f05c23ae..2f0491916 100644 --- a/src/core/features/course/services/course.ts +++ b/src/core/features/course/services/course.ts @@ -137,7 +137,7 @@ export class CoreCourseProvider { this.viewedModulesTables = lazyMap( siteId => asyncInstance( - () => CoreSites.getSiteTable(COURSE_VIEWED_MODULES_TABLE, { + () => CoreSites.getSiteTable(COURSE_VIEWED_MODULES_TABLE, { siteId, config: { cachingStrategy: CoreDatabaseCachingStrategy.None }, primaryKeyColumns: ['courseId', 'cmId'], diff --git a/src/core/features/pushnotifications/services/pushnotifications.ts b/src/core/features/pushnotifications/services/pushnotifications.ts index 4413f8d33..bfcb5dbca 100644 --- a/src/core/features/pushnotifications/services/pushnotifications.ts +++ b/src/core/features/pushnotifications/services/pushnotifications.ts @@ -72,7 +72,7 @@ export class CorePushNotificationsProvider { this.logger = CoreLogger.getInstance('CorePushNotificationsProvider'); this.registeredDevicesTables = lazyMap( siteId => asyncInstance( - () => CoreSites.getSiteTable( + () => CoreSites.getSiteTable( REGISTERED_DEVICES_TABLE_NAME, { siteId, diff --git a/src/core/services/filepool.ts b/src/core/services/filepool.ts index 8303fb85d..f4f1fc764 100644 --- a/src/core/services/filepool.ts +++ b/src/core/services/filepool.ts @@ -113,7 +113,7 @@ export class CoreFilepoolProvider { this.logger = CoreLogger.getInstance('CoreFilepoolProvider'); this.filesTables = lazyMap( siteId => asyncInstance( - () => CoreSites.getSiteTable(FILES_TABLE_NAME, { + () => CoreSites.getSiteTable(FILES_TABLE_NAME, { siteId, config: { cachingStrategy: CoreDatabaseCachingStrategy.Lazy }, primaryKeyColumns: ['fileId'], @@ -123,7 +123,7 @@ export class CoreFilepoolProvider { ); this.linksTables = lazyMap( siteId => asyncInstance( - () => CoreSites.getSiteTable(LINKS_TABLE_NAME, { + () => CoreSites.getSiteTable(LINKS_TABLE_NAME, { siteId, config: { cachingStrategy: CoreDatabaseCachingStrategy.Lazy }, primaryKeyColumns: ['fileId', 'component', 'componentId'], @@ -133,7 +133,7 @@ export class CoreFilepoolProvider { ); this.packagesTables = lazyMap( siteId => asyncInstance( - () => CoreSites.getSiteTable(PACKAGES_TABLE_NAME, { + () => CoreSites.getSiteTable(PACKAGES_TABLE_NAME, { siteId, config: { cachingStrategy: CoreDatabaseCachingStrategy.Lazy }, onDestroy: () => delete this.packagesTables[siteId],