Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions modules/forum/src/main/ForumTopicRepo.scala
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ final private class ForumTopicRepo(val coll: Coll, filter: Filter = Safe)(using
case SafeAnd(u) => $or(noTroll, $doc("userId" -> u))
case Unsafe => $empty

private lazy val notStickyQuery = $doc("sticky".$ne(true))
private lazy val stickyQuery = $doc("sticky" -> true)
private lazy val notStickyQuery = $or($doc("sticky".$exists(false)), $doc("sticky" -> false))
private lazy val stickyQuery = $and($doc("sticky".$exists(true)), $doc("sticky".$ne(false)))

def byId(id: ForumTopicId): Fu[Option[ForumTopic]] = coll.byId[ForumTopic](id)

Expand Down