mirror of
https://github.com/MrSedan/neuro-reply-website.git
synced 2026-01-15 04:59:42 +03:00
12 lines
316 B
TypeScript
12 lines
316 B
TypeScript
import { DataSource } from 'typeorm';
|
|
import { Admin } from '../db.entity';
|
|
import { adminRep, dataSource } from '../constants';
|
|
|
|
export const adminProviders = [
|
|
{
|
|
provide: adminRep,
|
|
useFactory: (dataSource: DataSource) => dataSource.getRepository(Admin),
|
|
inject: [dataSource],
|
|
},
|
|
];
|