mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
core: bug fix
This commit is contained in:
1 parent
d25952c02f
commit
b3e56c078a
3 files changed
+3
-3
No files matched your search
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "hydrooj",
|
"name": "hydrooj",
|
||||||
"version": "3.7.0",
|
"version": "3.7.1",
|
||||||
"bin": "bin/hydrooj.js",
|
"bin": "bin/hydrooj.js",
|
||||||
"main": "src/loader",
|
"main": "src/loader",
|
||||||
"module": "src/loader",
|
"module": "src/loader",
|
||||||
|
|||||||
@@ -115,7 +115,7 @@ class HomeHandler extends Handler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async get({ domainId }) {
|
async get({ domainId }) {
|
||||||
const homepageConfig = system.get('hydrooj.homepage1');
|
const homepageConfig = system.get('hydrooj.homepage');
|
||||||
const info = yaml.load(homepageConfig) as any;
|
const info = yaml.load(homepageConfig) as any;
|
||||||
const contents = [];
|
const contents = [];
|
||||||
for (const column of info) {
|
for (const column of info) {
|
||||||
|
|||||||
@@ -284,7 +284,7 @@ bus.once('app/started', async () => {
|
|||||||
await db.ensureIndexes(
|
await db.ensureIndexes(
|
||||||
collUser,
|
collUser,
|
||||||
{ key: { domainId: 1, uid: 1 }, name: 'uid', unique: true },
|
{ key: { domainId: 1, uid: 1 }, name: 'uid', unique: true },
|
||||||
{ key: { domainId: 1, uid: 1, rp: -1 }, name: 'rp', sparse: true },
|
{ key: { domainId: 1, rp: -1, uid: 1 }, name: 'rp', sparse: true },
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
export default DomainModel;
|
export default DomainModel;
|
||||||
|
|||||||
Reference in new issue
Block a user