core: 修复discussion_edit行为

This commit is contained in:
undefined committed 2021-03-29 22:49:44 +08:00
1 parent 1472c1567c
commit 777d648f63
3 files changed
+8 -3

No files matched your search

+5
View File
@@ -227,6 +227,11 @@ const scripts: UpgradeScript[] = [
await db.collection('domain.user').updateMany({ role: 'admin' }, { $set: { role: 'root' } });
return true;
},
async function _14_15() {
const _FRESH_INSTALL_IGNORE = 1;
await db.collection('domain.user').deleteMany({ uid: null });
await db.collection('domain.user').deleteMany({ uid: 0 });
},
];
export = scripts;