Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
USERSATOSHI committed Nov 12, 2023
1 parent f123e01 commit 86e489f
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/functions/database/userLeaderBoard.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,18 @@ module.exports = async (d) => {
let value;
let content = [];

const px = page * list - list,
const px = (page-1) * list,
py = page * list;
all = all.slice(px, py);
let y = px;

for (const Data of all.sort((x, y) => {
all = all.sort((x, y) => {
if (d.client.db.type === "aoi.db")
return Number(y.value) - Number(x.value);
else return Number(y.data.value) - Number(x.data.value);
})) {
});
all = all.slice(px, py);
let y = px+1;

for (const Data of all ) {
let user;

if (d.client.db.type === "aoi.db") value = Number(Data.value);
Expand Down

0 comments on commit 86e489f

Please sign in to comment.