mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: sync rdoc.score to psdoc.score
This commit is contained in:
1 parent
fda62809a1
commit
9e94ede71f
5 files changed
+27
-5
No files matched your search
@@ -228,11 +228,11 @@ export class ProblemModel {
|
||||
|
||||
static async updateStatus(
|
||||
domainId: string, pid: number, uid: number,
|
||||
rid: ObjectID, status: number,
|
||||
rid: ObjectID, status: number, score: number,
|
||||
) {
|
||||
const res = await document.setIfNotStatus(
|
||||
domainId, document.TYPE_PROBLEM, pid, uid,
|
||||
'status', status, STATUS.STATUS_ACCEPTED, { rid },
|
||||
'status', status, STATUS.STATUS_ACCEPTED, { rid, score },
|
||||
);
|
||||
return !!res;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user