Files
bigcapital/packages/server/src/loaders/systemRepositories.ts
2023-03-02 22:44:14 +02:00

15 lines
359 B
TypeScript

import Container from 'typedi';
import {
SystemUserRepository,
TenantRepository,
} from '@/system/repositories';
export default () => {
const knex = Container.get('knex');
const cache = Container.get('cache');
return {
systemUserRepository: new SystemUserRepository(knex, cache),
tenantRepository: new TenantRepository(knex, cache),
};
}