orderby-fix
All checks were successful
Deploy on push / deploy (push) Successful in 25s

This commit is contained in:
Untone 2024-02-26 16:04:39 +03:00
parent 3c0a1cf592
commit 431b14bf5b

View File

@ -374,7 +374,7 @@ async def load_reactions_by(_, info, by, limit=50, offset=0):
# order by # order by
q = q.distinct() q = q.distinct()
q = q.order_by(desc(text('created_at'))) q = q.order_by(desc(Reaction.created_at))
# pagination # pagination
q = q.limit(limit).offset(offset) q = q.limit(limit).offset(offset)