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