mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
recaptcha: init support
This commit is contained in:
1 parent
f58db3eeb2
commit
8d3dc160a8
11 files changed
+80
-8
No files matched your search
@@ -231,6 +231,7 @@ const scripts: UpgradeScript[] = [
|
||||
const _FRESH_INSTALL_IGNORE = 1;
|
||||
await db.collection('domain.user').deleteMany({ uid: null });
|
||||
await db.collection('domain.user').deleteMany({ uid: 0 });
|
||||
return true;
|
||||
},
|
||||
async function _15_16() {
|
||||
const _FRESH_INSTALL_IGNORE = 1;
|
||||
@@ -242,6 +243,7 @@ const scripts: UpgradeScript[] = [
|
||||
if (JSON.stringify(af) !== JSON.stringify(pdoc.additional_file)) $set.additional_file = af;
|
||||
if (Object.keys($set).length) await problem.edit(pdoc.domainId, pdoc.docId, $set);
|
||||
});
|
||||
return true;
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
Reference in new issue
Block a user