mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 21:00:31 +00:00
- feat: remove unnecessary migrations, controllers and models files.
- feat: metable store - feat: metable store with settings store. - feat: settings middleware to auto-save and load. - feat: DI db manager to master container. - feat: write some logs to sale invoices.
This commit is contained in:
15
server/src/services/Settings/SettingsStore.ts
Normal file
15
server/src/services/Settings/SettingsStore.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import Knex from 'knex';
|
||||
import MetableStoreDB from '@/lib/Metable/MetableStoreDB';
|
||||
import Setting from '@/models/Setting';
|
||||
|
||||
export default class SettingsStore extends MetableStoreDB {
|
||||
/**
|
||||
* Constructor method.
|
||||
* @param {number} tenantId
|
||||
*/
|
||||
constructor(knex: Knex) {
|
||||
super();
|
||||
this.setExtraColumns(['group']);
|
||||
this.setModel(Setting.bindKnex(knex));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user