[fix] miss orderby created_at
All checks were successful
/ run-pytest (push) Successful in 1m8s

This commit is contained in:
SouthFox 2024-03-17 17:10:58 +08:00
parent 4a330c3678
commit 4b4b0a0f80

View file

@ -17,6 +17,8 @@
[db]
(.all (await
(.scalars db
(.where (select models.OutboxObject)
(.in_ models.OutboxObject.visibility [VisibilityEnum.PUBLIC VisibilityEnum.UNLISTED])
(.is_ models.OutboxObject.is_deleted False))))))
(.order_by
(.where (select models.OutboxObject)
(.in_ models.OutboxObject.visibility [VisibilityEnum.PUBLIC VisibilityEnum.UNLISTED])
(.is_ models.OutboxObject.is_deleted False))
(.desc models.OutboxObject.created_at))))))