diff options
| author | lonkaars <loek@pipeframe.xyz> | 2023-07-13 16:39:01 +0200 |
|---|---|---|
| committer | lonkaars <loek@pipeframe.xyz> | 2023-07-13 16:39:01 +0200 |
| commit | 28fb362147358819afeb0f0a5fa7a4ad136499ac (patch) | |
| tree | 4c4224f503f66fcea1e25b464daf0f9659a09bab /core | |
| parent | 919cdce6bcf12f564901ea536dae4227d025b031 (diff) | |
ignore terms
Diffstat (limited to 'core')
| -rw-r--r-- | core/api.ts | 1 | ||||
| -rw-r--r-- | core/raw/api.ts | 6 |
2 files changed, 6 insertions, 1 deletions
diff --git a/core/api.ts b/core/api.ts index 77195b2..6fac346 100644 --- a/core/api.ts +++ b/core/api.ts @@ -10,6 +10,7 @@ export interface CoreSearch { /** @interface user management */ export interface CoreUser { + termPriority(userID: number, expression: string, reading: string, priority: number): Promise<void>; // TODO: list // TODO: add // TODO: remove diff --git a/core/raw/api.ts b/core/raw/api.ts index 76cdb5b..47e9075 100644 --- a/core/raw/api.ts +++ b/core/raw/api.ts @@ -33,7 +33,11 @@ export default class RawCore implements Core { }, }; - public user: CoreUser = {}; + public user: CoreUser = { + termPriority: async (uid, expression, reading, priority) => { + this._db.termPriority(uid, expression, reading, priority); + }, + }; public import: CoreImport = {}; |