import { inject } from '@loopback/core' ; import { DefaultKeyValueRepository , juggler } from '@loopback/repository' ; import { NotificationAccess } from '../models/notification-access.model' ; import { NotifAccessCacheSourceName } from '../types' ; export class NotificationAccessRepository extends DefaultKeyValueRepository < NotificationAccess > { constructor ( @ inject ( `datasources.${ NotifAccessCacheSourceName }` ) dataSource ) { super ( NotificationAccess , dataSource ) ; } }