vjudge: fix result callback

This commit is contained in:
undefined committed 2023-12-17 22:34:07 +08:00
1 parent 2982840d5a
commit 6d871c289e
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@hydrooj/vjudge",
"version": "1.9.0",
"version": "1.9.1",
"description": "Submit problems to remote oj",
"main": "src/model.ts",
"repository": "https://github.com/hydro-dev/Hydro.git",
+2 -2
View File
@@ -42,8 +42,8 @@ class AccountService {
async judge(task) {
const rdoc = await RecordModel.get(task.domainId, task.rid);
task = Object.assign(rdoc, task);
const next = (payload) => JudgeHandler.next({ ...payload, rid: task.rid, rdoc });
const end = (payload) => JudgeHandler.end({ ...payload, rid: task.rid, rdoc });
const next = (payload) => JudgeHandler.next({ ...payload, rid: task.rid, domainId: task.domainId });
const end = (payload) => JudgeHandler.end({ ...payload, rid: task.rid, domainId: task.domainId });
await next({ status: STATUS.STATUS_FETCHED });
try {
const langConfig = SettingModel.langs[task.lang];