mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 01:38:19 +08:00
移除可以与同一用户创建多个会话的特性
This commit is contained in:
1 parent
d04628148f
commit
3c5fdb9032
16 files changed
+120
-118
No files matched your search
@@ -118,8 +118,10 @@ class ProblemSubmitHandler extends ProblemDetailHandler {
|
||||
const rid = await record.add({
|
||||
uid: this.uid, lang, code, pid: this.pdoc._id,
|
||||
});
|
||||
await record.judge(rid);
|
||||
this.user.nSubmit++;
|
||||
await Promise.all([
|
||||
record.judge(rid),
|
||||
user.inc(this.user._id, 'nSubmit'),
|
||||
]);
|
||||
this.response.body = { rid };
|
||||
this.response.redirect = `/r/${rid}`;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user