mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-14 20:00:33 +00:00
17 lines
454 B
TypeScript
17 lines
454 B
TypeScript
import Container from 'typedi';
|
|
import {
|
|
SystemUserRepository,
|
|
SubscriptionRepository,
|
|
TenantRepository,
|
|
} from '@/system/repositories';
|
|
|
|
export default () => {
|
|
const knex = Container.get('knex');
|
|
const cache = Container.get('cache');
|
|
|
|
return {
|
|
systemUserRepository: new SystemUserRepository(knex, cache),
|
|
subscriptionRepository: new SubscriptionRepository(knex, cache),
|
|
tenantRepository: new TenantRepository(knex, cache),
|
|
};
|
|
} |