mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
core: fix discussion visibility
This commit is contained in:
2 files changed
+5
-1
No files matched your search
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "hydrooj",
|
||||
"version": "4.9.1",
|
||||
"version": "4.9.2",
|
||||
"bin": "bin/hydrooj.js",
|
||||
"main": "src/plugin-api",
|
||||
"module": "src/plugin-api",
|
||||
|
||||
@@ -551,6 +551,10 @@ const scripts: UpgradeScript[] = [
|
||||
await problem.edit(pdoc.domainId, pdoc.docId, { data: pdoc.data });
|
||||
});
|
||||
},
|
||||
async function _77_78() {
|
||||
await document.coll.updateMany({ docType: document.TYPE_DISCUSSION }, { $set: { hidden: false } });
|
||||
return true;
|
||||
},
|
||||
];
|
||||
|
||||
export default scripts;
|
||||
Reference in new issue
Block a user