mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 13:50:31 +00:00
feat: wip migrate server to nestjs
This commit is contained in:
22
packages/server-nest/src/modules/Search/SearchableMdel.ts
Normal file
22
packages/server-nest/src/modules/Search/SearchableMdel.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
import * as O from 'objection';
|
||||
import { IModelMeta, } from '@/interfaces/Model';
|
||||
|
||||
export const SearchableModel: O.Plugin = (Model) =>
|
||||
// @ts-ignore
|
||||
class extends Model {
|
||||
additionalProperty: string;
|
||||
|
||||
/**
|
||||
* Searchable model.
|
||||
*/
|
||||
static get searchable(): IModelMeta {
|
||||
throw true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Search roles.
|
||||
*/
|
||||
// static get searchRoles(): ISearchRole[] {
|
||||
// return [];
|
||||
// }
|
||||
};
|
||||
Reference in New Issue
Block a user