12 lines
357 B
TypeScript
12 lines
357 B
TypeScript
import { Injectable } from '@nestjs/common';
|
|
import { Repository, DataSource } from 'typeorm';
|
|
import { Impersonation } from '../entitites/impersination.entity';
|
|
|
|
@Injectable()
|
|
export class ImpersonationRepository extends Repository<Impersonation> {
|
|
constructor(dataSource: DataSource) {
|
|
super(Impersonation, dataSource.createEntityManager());
|
|
}
|
|
|
|
}
|