11 lines
311 B
TypeScript
11 lines
311 B
TypeScript
import { Service } from 'typedi';
|
|
import { DataSource, Repository } from 'typeorm';
|
|
import { AuthIdentity } from '../entities/AuthIdentity';
|
|
|
|
@Service()
|
|
export class AuthIdentityRepository extends Repository<AuthIdentity> {
|
|
constructor(dataSource: DataSource) {
|
|
super(AuthIdentity, dataSource.manager);
|
|
}
|
|
}
|