This commit is contained in:
parent
3c0a1cf592
commit
431b14bf5b
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user