mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 06:10:31 +00:00
feat: rewrite repositories with base entity repository class.
feat: sales and purchases status. feat: sales and purchases auto-increment number. fix: settings find query with extra columns.
This commit is contained in:
@@ -3,10 +3,4 @@ import TenantRepository from 'repositories/TenantRepository';
|
||||
|
||||
export default class ViewRoleRepository extends TenantRepository {
|
||||
|
||||
allByView(viewId: number) {
|
||||
const { ViewRole } = this.models;
|
||||
return this.cache.get(`viewRole.view.${viewId}`, async () => {
|
||||
return ViewRole.query().where('view_id', viewId);
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user