aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/api.ts1
-rw-r--r--core/raw/api.ts6
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 = {};