From 4b4b0a0f8032417f6e7779090f8debc77d722f38 Mon Sep 17 00:00:00 2001 From: SouthFox Date: Sun, 17 Mar 2024 17:10:58 +0800 Subject: [PATCH] [fix] miss orderby created_at --- app/hysql.hy | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/app/hysql.hy b/app/hysql.hy index 5d11d9a..0f366ee 100644 --- a/app/hysql.hy +++ b/app/hysql.hy @@ -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))))))