not including banned users

This commit is contained in:
Jack 2021-09-07 20:14:25 +01:00
parent 3565b1f3a2
commit 803025f80c
2 changed files with 8 additions and 0 deletions

View file

@ -22,4 +22,11 @@ router.post(
LeaderboardsController.update
);
//TODO remove me
router.post(
"/debug_update",
RateLimit.limit1persec,
LeaderboardsController.debugUpdate
);
module.exports = router;

View file

@ -35,6 +35,7 @@ class LeaderboardsDAO {
[str + ".acc"]: {
$exists: true,
},
banned: { $exists: false },
},
},
{