mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-15 04:10:32 +00:00
21 lines
477 B
TypeScript
21 lines
477 B
TypeScript
import { Container } from 'typedi';
|
|
import TenancyService from '@/services/Tenancy/TenancyService';
|
|
import CachableRepository from './CachableRepository';
|
|
|
|
export default class TenantRepository extends CachableRepository {
|
|
repositoryName: string;
|
|
tenantId: number;
|
|
|
|
/**
|
|
* Constructor method.
|
|
* @param {number} tenantId
|
|
*/
|
|
constructor(knex, cache, i18n) {
|
|
super(knex, cache, i18n);
|
|
}
|
|
|
|
setTenantId(tenantId: number) {
|
|
this.tenantId = tenantId;
|
|
}
|
|
}
|