mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
修复discussion模块
This commit is contained in:
1 parent
2554cf660a
commit
33e277f28f
30 files changed
+2460
-187
No files matched your search
@@ -90,7 +90,6 @@ class JudgeHandler extends Handler {
|
||||
}
|
||||
|
||||
async get({ check = false }) {
|
||||
this.response.body = {};
|
||||
if (check) return;
|
||||
const tasks = [];
|
||||
let rid = await queue.get('judge', false);
|
||||
@@ -122,17 +121,16 @@ class JudgeHandler extends Handler {
|
||||
tasks.push(task);
|
||||
rid = await queue.get('judge', false); // eslint-disable-line no-await-in-loop
|
||||
}
|
||||
this.response.body = { tasks };
|
||||
}
|
||||
|
||||
async postNext() {
|
||||
await next(this.request.body);
|
||||
this.response.body = {};
|
||||
}
|
||||
|
||||
async postEnd() {
|
||||
this.request.body.judger = this.user._id;
|
||||
await end(this.request.body);
|
||||
this.response.body = {};
|
||||
}
|
||||
}
|
||||
class JudgeConnectionHandler extends ConnectionHandler {
|
||||
|
||||
Reference in new issue
Block a user