From ac1a21f5ec551b8cfe7a58611301b7f2742269d0 Mon Sep 17 00:00:00 2001 From: mat Date: Tue, 1 Jun 2021 16:54:25 -0500 Subject: add queue sizes to index debug data --- build/index.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'build/index.js') diff --git a/build/index.js b/build/index.js index 62c1f7e..1f628ea 100644 --- a/build/index.js +++ b/build/index.js @@ -56,7 +56,9 @@ app.get('/', async (req, res) => { res.json({ ok: true, uptimeHours: (currentTime - startTime) / 1000 / 60 / 60, - finishedCachingRawLeaderboards: database_1.finishedCachingRawLeaderboards + finishedCachingRawLeaderboards: database_1.finishedCachingRawLeaderboards, + leaderboardUpdateMemberQueueSize: database_1.leaderboardUpdateMemberQueue.size, + leaderboardUpdateProfileQueueSize: database_1.leaderboardUpdateProfileQueue.size, }); }); app.get('/player/:user', async (req, res) => { @@ -88,10 +90,7 @@ app.get('/player/:user/:profile', async (req, res) => { }); app.get('/player/:user/:profile/leaderboards', async (req, res) => { try { - res.json({ ok: false }); - // res.json( - // await fetchMemberLeaderboardSpots(req.params.user, req.params.profile) - // ) + res.json(await database_1.fetchMemberLeaderboardSpots(req.params.user, req.params.profile)); } catch (err) { console.error(err); -- cgit