diff options
author | mat <github@matdoes.dev> | 2021-06-01 16:54:25 -0500 |
---|---|---|
committer | mat <github@matdoes.dev> | 2021-06-01 16:54:25 -0500 |
commit | ac1a21f5ec551b8cfe7a58611301b7f2742269d0 (patch) | |
tree | 46c8a6fc8a2676274d1b0d2a58ca4dd5324ff213 /build/index.js | |
parent | 04d79fe41fae83eed8f17eda97e4e4827dc79e92 (diff) | |
download | skyblock-api-ac1a21f5ec551b8cfe7a58611301b7f2742269d0.tar.gz skyblock-api-ac1a21f5ec551b8cfe7a58611301b7f2742269d0.tar.bz2 skyblock-api-ac1a21f5ec551b8cfe7a58611301b7f2742269d0.zip |
add queue sizes to index debug data
Diffstat (limited to 'build/index.js')
-rw-r--r-- | build/index.js | 9 |
1 files changed, 4 insertions, 5 deletions
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); |