mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 22:30:31 +00:00
fix: system repositories.
This commit is contained in:
@@ -4,10 +4,9 @@ import { Contact } from 'models'
|
||||
|
||||
export default class ContactRepository extends TenantRepository {
|
||||
/**
|
||||
* Constructor method.
|
||||
* Gets the repository's model.
|
||||
*/
|
||||
constructor(knex, cache) {
|
||||
super(knex, cache);
|
||||
this.model = Contact;
|
||||
get model() {
|
||||
return Contact.bindKnex(this.knex);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user