core: task migration

This commit is contained in:
undefined committed 2022-02-02 01:37:58 +08:00
1 parent 599a45e106
commit 2143e2989d
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "hydrooj",
"version": "3.4.1",
"version": "3.4.2",
"bin": "bin/hydrooj.js",
"main": "src/loader",
"module": "src/loader",
+1
View File
@@ -680,6 +680,7 @@ const scripts: UpgradeScript[] = [
for (const task of tasks) {
await TaskModel.add({ ...task, subType: 'contest', operation: ['unhide'] });
}
await TaskModel.deleteMany({ type: 'schedule', subType: 'contest.problemHide' });
return true;
},
];