mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 17:36:08 +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
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "hydrooj",
|
||||
"version": "3.14.15",
|
||||
"version": "3.14.16",
|
||||
"bin": "bin/hydrooj.js",
|
||||
"main": "src/loader",
|
||||
"module": "src/loader",
|
||||
|
||||
@@ -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