import { inject } from '@loopback/core' ; import { DefaultCrudRepository } from '@loopback/repository' ; import { AuditDbSourceName , AuditLog } from '@sourceloop/audit-log' ; import { PgDataSource } from '../datasources' ; export class AuditLogRepository extends DefaultCrudRepository < AuditLog , typeof AuditLog . prototype . id > { constructor ( @ inject ( `datasources.${ AuditDbSourceName }` ) dataSource ) { super ( AuditLog , dataSource ) ; } }