Skip to content

Commit

Permalink
feat!: increase limit of displayed servers
Browse files Browse the repository at this point in the history
  • Loading branch information
btwlouis authored Apr 23, 2024
1 parent 4ee00ee commit df2f215
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/services/server.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export async function insertOrUpdate(serverData: IServerData) {
await Server.create(serverData);
}

export async function getAll(amount: number = 200) {
export async function getAll(amount: number = 2000) {
// order by clients desc
return await Server.find({}, { "EndPoint": 1, "Data.serverIconUrl": 1, "Data.hostname": 1, "Data.clients": 1, "Data.mapname": 1, "Data.gametype": 1, "Data.sv_maxclients": 1 })
.sort({ "Data.clients": -1 })
Expand All @@ -37,4 +37,4 @@ export async function getStats() {
players,
maxPlayers
};
}
}

0 comments on commit df2f215

Please sign in to comment.