core: sync rdoc.score to psdoc.score

This commit is contained in:
undefined committed 2021-05-06 12:10:22 +08:00
1 parent fda62809a1
commit 9e94ede71f
5 files changed
+27 -5

No files matched your search

+2 -2
View File
@@ -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;
}