mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-05 19:20:12 +08:00
fix: remove fake leaderboard responses
This commit is contained in:
1 parent
52fa8d6f3a
commit
9e7065fbd7
1 file changed
+1
-6
@@ -8,10 +8,5 @@ export default asyncHandler(async (req, res) => {
|
||||
completedQuests: user.completedQuests,
|
||||
score: user.score * 1000,
|
||||
}))
|
||||
// duplicate the response 100 times
|
||||
const fakeResponse = []
|
||||
for (let i = 0; i < 100; i++) {
|
||||
fakeResponse.push(...response)
|
||||
}
|
||||
res.json(fakeResponse)
|
||||
res.json(response)
|
||||
})
|
||||
Reference in new issue
Block a user