mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: task migration
This commit is contained in:
1 parent
599a45e106
commit
2143e2989d
2 files changed
+2
-1
No files matched your search
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "hydrooj",
|
"name": "hydrooj",
|
||||||
"version": "3.4.1",
|
"version": "3.4.2",
|
||||||
"bin": "bin/hydrooj.js",
|
"bin": "bin/hydrooj.js",
|
||||||
"main": "src/loader",
|
"main": "src/loader",
|
||||||
"module": "src/loader",
|
"module": "src/loader",
|
||||||
|
|||||||
@@ -680,6 +680,7 @@ const scripts: UpgradeScript[] = [
|
|||||||
for (const task of tasks) {
|
for (const task of tasks) {
|
||||||
await TaskModel.add({ ...task, subType: 'contest', operation: ['unhide'] });
|
await TaskModel.add({ ...task, subType: 'contest', operation: ['unhide'] });
|
||||||
}
|
}
|
||||||
|
await TaskModel.deleteMany({ type: 'schedule', subType: 'contest.problemHide' });
|
||||||
return true;
|
return true;
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in new issue
Block a user