From 803025f80c1173a6becf20c1fc051ae825016a99 Mon Sep 17 00:00:00 2001 From: Jack Date: Tue, 7 Sep 2021 20:14:25 +0100 Subject: [PATCH] not including banned users --- backend/api/routes/leaderboards.js | 7 +++++++ backend/dao/leaderboards.js | 1 + 2 files changed, 8 insertions(+) diff --git a/backend/api/routes/leaderboards.js b/backend/api/routes/leaderboards.js index 648ba8c4d..f416dc081 100644 --- a/backend/api/routes/leaderboards.js +++ b/backend/api/routes/leaderboards.js @@ -22,4 +22,11 @@ router.post( LeaderboardsController.update ); +//TODO remove me +router.post( + "/debug_update", + RateLimit.limit1persec, + LeaderboardsController.debugUpdate +); + module.exports = router; diff --git a/backend/dao/leaderboards.js b/backend/dao/leaderboards.js index 6df1c5591..d2df513bb 100644 --- a/backend/dao/leaderboards.js +++ b/backend/dao/leaderboards.js @@ -35,6 +35,7 @@ class LeaderboardsDAO { [str + ".acc"]: { $exists: true, }, + banned: { $exists: false }, }, }, {