mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: fix ranking
This commit is contained in:
2 files changed
+2
-2
No files matched your search
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "hydrooj",
|
"name": "hydrooj",
|
||||||
"version": "4.10.3",
|
"version": "4.10.4",
|
||||||
"bin": "bin/hydrooj.js",
|
"bin": "bin/hydrooj.js",
|
||||||
"main": "src/plugin-api",
|
"main": "src/plugin-api",
|
||||||
"module": "src/plugin-api",
|
"module": "src/plugin-api",
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ class DomainRankHandler extends Handler {
|
|||||||
100,
|
100,
|
||||||
);
|
);
|
||||||
const udict = await user.getList(domainId, dudocs.map((dudoc) => dudoc.uid));
|
const udict = await user.getList(domainId, dudocs.map((dudoc) => dudoc.uid));
|
||||||
const udocs = Object.values(udict);
|
const udocs = dudocs.map((i) => udict[i.uid]);
|
||||||
this.response.template = 'ranking.html';
|
this.response.template = 'ranking.html';
|
||||||
this.response.body = {
|
this.response.body = {
|
||||||
udocs, upcount, ucount, page,
|
udocs, upcount, ucount, page,
|
||||||
|
|||||||
Reference in new issue
Block a user