inverted result sorting

This commit is contained in:
Miodec 2021-08-04 14:37:15 +01:00
parent 6ff2984ef7
commit 99fca1b3e3

View file

@ -53,7 +53,7 @@ class ResultDAO {
const result = await mongoDB()
.collection("results")
.find({ uid })
.sort({ timestamp: 1 })
.sort({ timestamp: -1 })
.skip(start)
.limit(end)
.toArray(); // this needs to be changed to later take patreon into consideration