mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-15 20:30:33 +00:00
feat(nestjs): migrate to NestJS
This commit is contained in:
22
packages/server/src/modules/Settings/models/Setting.ts
Normal file
22
packages/server/src/modules/Settings/models/Setting.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
import { BaseModel } from '@/models/Model';
|
||||
// import TenantModel from 'models/TenantModel';
|
||||
// import Auth from './Auth';
|
||||
|
||||
export class Setting extends BaseModel {
|
||||
/**
|
||||
* Table name
|
||||
*/
|
||||
static get tableName() {
|
||||
return 'settings';
|
||||
}
|
||||
|
||||
/**
|
||||
* Extra metadata query to query with the current authenticate user.
|
||||
* @param {Object} query
|
||||
*/
|
||||
// static extraMetadataQuery(query) {
|
||||
// if (Auth.isLogged()) {
|
||||
// query.where('user_id', Auth.userId());
|
||||
// }
|
||||
// }
|
||||
}
|
||||
Reference in New Issue
Block a user