core: fix problem_edit returns null

This commit is contained in:
undefined committed 2021-03-08 19:29:04 +08:00
1 parent b240a46057
commit 391eb96b22
3 files changed
+10 -4

No files matched your search

+6
View File
@@ -200,6 +200,12 @@ const scripts: UpgradeScript[] = [
});
return true;
},
// Set null tag to []
async function _9_10() {
const _FRESH_INSTALL_IGNORE = 1;
await db.collection('document').updateMany({ docType: 10, tag: null }, { $set: { tag: [] } });
return true;
},
];
export = scripts;