mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-08 11:30: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,
|
completedQuests: user.completedQuests,
|
||||||
score: user.score * 1000,
|
score: user.score * 1000,
|
||||||
}))
|
}))
|
||||||
// duplicate the response 100 times
|
res.json(response)
|
||||||
const fakeResponse = []
|
|
||||||
for (let i = 0; i < 100; i++) {
|
|
||||||
fakeResponse.push(...response)
|
|
||||||
}
|
|
||||||
res.json(fakeResponse)
|
|
||||||
})
|
})
|
||||||
Reference in new issue
Block a user