mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: trigger record/change inside RecordModel
This commit is contained in:
2 files changed
+1
-4
No files matched your search
@@ -147,6 +147,7 @@ export default class RecordModel {
|
||||
data.contest = RecordModel.RECORD_PRETEST;
|
||||
}
|
||||
const res = await RecordModel.coll.insertOne(data);
|
||||
bus.broadcast('record/change', data);
|
||||
if (addTask) {
|
||||
const priority = await RecordModel.submissionPriority(uid, args.type === 'pretest' ? -20 : (isContest ? 50 : 0));
|
||||
await RecordModel.judge(domainId, res.insertedId, priority, isContest ? { detail: false } : {}, {
|
||||
|
||||
Reference in new issue
Block a user