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
@@ -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;
|
||||
},
|
||||
];
|
||||
|
||||
Reference in new issue
Block a user