[perf] desc order index page
All checks were successful
ci/woodpecker/push/lint Pipeline was successful
ci/woodpecker/push/test Pipeline was successful

This commit is contained in:
SouthFox 2023-07-31 06:22:51 +08:00
parent 5fbb6625e5
commit 9742552c5f

View file

@ -86,7 +86,7 @@ async def index(
select(models.OutboxObject).where(
models.OutboxObject.ap_type == "Note",
models.OutboxObject.is_deleted.is_(False),
)
).order_by(models.OutboxObject.created_at.desc())
)
).all()