mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-15 20:30:33 +00:00
add server to monorepo.
This commit is contained in:
25
packages/server/src/services/Tenancy/SystemService.ts
Normal file
25
packages/server/src/services/Tenancy/SystemService.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
import Container from 'typedi';
|
||||
import { Service } from 'typedi';
|
||||
|
||||
@Service()
|
||||
export default class HasSystemService implements SystemService {
|
||||
private container(key: string) {
|
||||
return Container.get(key);
|
||||
}
|
||||
|
||||
knex() {
|
||||
return this.container('knex');
|
||||
}
|
||||
|
||||
repositories() {
|
||||
return this.container('repositories');
|
||||
}
|
||||
|
||||
cache() {
|
||||
return this.container('cache');
|
||||
}
|
||||
|
||||
dbManager() {
|
||||
return this.container('dbManager');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user