From 50731bff532434522d6e685b24e049fbc88d58e3 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Tue, 5 Mar 2024 16:42:45 -0500 Subject: [PATCH] Forgot to order by published desc --- crates/db_schema/src/impls/images.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/db_schema/src/impls/images.rs b/crates/db_schema/src/impls/images.rs index f34a595f2..a5af893cb 100644 --- a/crates/db_schema/src/impls/images.rs +++ b/crates/db_schema/src/impls/images.rs @@ -51,6 +51,7 @@ impl LocalImage { local_image::table .filter(local_image::local_user_id.eq(user_id)) .select(local_image::all_columns) + .order_by(local_image::published.desc()) .limit(limit) .offset(offset) .load::(conn)