core: bug fix

This commit is contained in:
undefined committed 2022-03-04 00:59:51 +08:00
1 parent d25952c02f
commit b3e56c078a
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "hydrooj",
"version": "3.7.0",
"version": "3.7.1",
"bin": "bin/hydrooj.js",
"main": "src/loader",
"module": "src/loader",
+1 -1
View File
@@ -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) {
+1 -1
View File
@@ -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;