Skip to content

Commit

Permalink
use relay.order
Browse files Browse the repository at this point in the history
  • Loading branch information
ornicar committed Nov 17, 2024
1 parent 288cb91 commit 2ccce23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/RelayCrowd.scala
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ final private class RelayCrowd(roomCrowd: RoomCrowd, mongo: Mongo)(using ex: Exe
)
)
),
BSONDocument("$sort" -> BSONDocument("createdAt" -> 1)),
BSONDocument("$sort" -> BSONDocument("order" -> 1)),
BSONDocument("$limit" -> 1),
BSONDocument("$project" -> BSONDocument("_id" -> true))
)
Expand Down

0 comments on commit 2ccce23

Please sign in to comment.