mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-05 19:20:12 +08:00
wip: design leaderboard
This commit is contained in:
1 parent
a90b0a3c83
commit
790e09b315
3 files changed
+67
-7
No files matched your search
@@ -8,5 +8,10 @@ export default asyncHandler(async (req, res) => {
|
||||
completedQuests: user.completedQuests,
|
||||
score: user.score * 1000,
|
||||
}))
|
||||
res.json(response)
|
||||
// duplicate the response 100 times
|
||||
const fakeResponse = []
|
||||
for (let i = 0; i < 100; i++) {
|
||||
fakeResponse.push(...response)
|
||||
}
|
||||
res.json(fakeResponse)
|
||||
})
|
||||
Reference in new issue
Block a user