MOBILE-4304 core: Remove redundant generics
parent
7a9013c2e9
commit
38d0ad1aad
|
@ -137,7 +137,7 @@ export class CoreCourseProvider {
|
|||
|
||||
this.viewedModulesTables = lazyMap(
|
||||
siteId => asyncInstance(
|
||||
() => CoreSites.getSiteTable<CoreCourseViewedModulesDBRecord, 'courseId' | 'cmId'>(COURSE_VIEWED_MODULES_TABLE, {
|
||||
() => CoreSites.getSiteTable(COURSE_VIEWED_MODULES_TABLE, {
|
||||
siteId,
|
||||
config: { cachingStrategy: CoreDatabaseCachingStrategy.None },
|
||||
primaryKeyColumns: ['courseId', 'cmId'],
|
||||
|
|
|
@ -72,7 +72,7 @@ export class CorePushNotificationsProvider {
|
|||
this.logger = CoreLogger.getInstance('CorePushNotificationsProvider');
|
||||
this.registeredDevicesTables = lazyMap(
|
||||
siteId => asyncInstance(
|
||||
() => CoreSites.getSiteTable<CorePushNotificationsRegisteredDeviceDBRecord, 'appid' | 'uuid'>(
|
||||
() => CoreSites.getSiteTable(
|
||||
REGISTERED_DEVICES_TABLE_NAME,
|
||||
{
|
||||
siteId,
|
||||
|
|
|
@ -113,7 +113,7 @@ export class CoreFilepoolProvider {
|
|||
this.logger = CoreLogger.getInstance('CoreFilepoolProvider');
|
||||
this.filesTables = lazyMap(
|
||||
siteId => asyncInstance(
|
||||
() => CoreSites.getSiteTable<CoreFilepoolFileEntry, 'fileId'>(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<CoreFilepoolLinksRecord, 'fileId' | 'component' | 'componentId'>(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<CoreFilepoolPackageEntry, 'id'>(PACKAGES_TABLE_NAME, {
|
||||
() => CoreSites.getSiteTable(PACKAGES_TABLE_NAME, {
|
||||
siteId,
|
||||
config: { cachingStrategy: CoreDatabaseCachingStrategy.Lazy },
|
||||
onDestroy: () => delete this.packagesTables[siteId],
|
||||
|
|
Loading…
Reference in New Issue