mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: fix record stat update
This commit is contained in:
3 files changed
+11
-27
No files matched your search
@@ -264,7 +264,7 @@ export function apply(ctx: Context) {
|
||||
]));
|
||||
ctx.on('domain/delete', (domainId) => RecordModel.coll.deleteMany({ domainId }));
|
||||
ctx.on('record/judge', async (rdoc, updated) => {
|
||||
if (rdoc.status === STATUS.STATUS_ACCEPTED && updated && !rdoc.contest) {
|
||||
if (rdoc.status === STATUS.STATUS_ACCEPTED && updated) {
|
||||
await RecordModel.collStat.updateOne({
|
||||
_id: rdoc._id,
|
||||
}, {
|
||||
|
||||
Reference in new issue
Block a user