fix bugs.

This commit is contained in:
Ahmed Bouhuolia
2020-04-29 17:54:26 +02:00
parent f6c5cae82e
commit 3b063e3567
4 changed files with 21 additions and 7 deletions

View File

@@ -1,4 +1,10 @@
import BaseModel from '@/models/Model';
export default class TenantModel extends BaseModel{
}
export default class TenantModel extends BaseModel {
static tenant() {
if (!this.knexBinded) {
throw new Error('Tenant knex is not binded yet.');
}
return super.bindKnex(this.knexBinded);
}
}