mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
core: patch homeworks created in contest handler
This commit is contained in:
1 parent
1c3ea21283
commit
4b3c57549a
2 files changed
+8
-1
No files matched your search
@@ -784,6 +784,13 @@ const scripts: UpgradeScript[] = [
|
||||
}
|
||||
return true;
|
||||
},
|
||||
async function _63_64() {
|
||||
await db.collection('document').updateMany(
|
||||
{ rule: 'homework', penaltySince: { $exists: false } },
|
||||
{ $set: { penaltySince: new Date() } },
|
||||
);
|
||||
return true;
|
||||
},
|
||||
];
|
||||
|
||||
export default scripts;
|
||||
Reference in new issue
Block a user