mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
core: problemStat: also calc psdoc
This commit is contained in:
1 parent
cc1faba709
commit
8a114abb55
4 files changed
+28
-3
No files matched your search
@@ -223,6 +223,13 @@ export class ProblemModel {
|
||||
return !!res;
|
||||
}
|
||||
|
||||
static async incStatus(
|
||||
domainId: string, pid: number, uid: number,
|
||||
key: NumberKeys<ProblemStatusDoc>, count: number,
|
||||
) {
|
||||
return await document.incStatus(domainId, document.TYPE_PROBLEM, pid, uid, key, count);
|
||||
}
|
||||
|
||||
static setStar(domainId: string, pid: number, uid: number, star: boolean) {
|
||||
return document.setStatus(domainId, document.TYPE_PROBLEM, pid, uid, { star });
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user