changed default to 100

This commit is contained in:
Jack 2021-09-07 00:56:29 +01:00
parent 5af7e4346a
commit c41e26e051

View file

@ -3,8 +3,9 @@ const { mongoDB } = require("../init/mongodb");
const { ObjectID } = require("mongodb");
class LeaderboardsDAO {
static async get(mode, mode2, language, skip, limit = 30) {
if (limit > 30 || limit === 0) limit = 30;
static async get(mode, mode2, language, skip, limit = 100) {
if (limit > 100 || limit <= 0) limit = 100;
if (skip < 0) skip = 0;
const preset = await mongoDB()
.collection(`leaderboards.${language}.${mode}.${mode2}`)
.find()