mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01: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
@@ -115,7 +115,7 @@ class HomeHandler extends Handler {
|
||||
}
|
||||
|
||||
async get({ domainId }) {
|
||||
const homepageConfig = system.get('hydrooj.homepage1');
|
||||
const homepageConfig = system.get('hydrooj.homepage');
|
||||
const info = yaml.load(homepageConfig) as any;
|
||||
const contents = [];
|
||||
for (const column of info) {
|
||||
|
||||
@@ -284,7 +284,7 @@ bus.once('app/started', async () => {
|
||||
await db.ensureIndexes(
|
||||
collUser,
|
||||
{ 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;
|
||||
|
||||
Reference in new issue
Block a user