mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 17:36:08 +08:00
vjudge: fix result callback
This commit is contained in:
2 files changed
+3
-3
No files matched your search
@@ -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",
|
||||
|
||||
@@ -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];
|
||||
|
||||
Reference in new issue
Block a user