Forgot to order by published desc

delete-old-avatar
Dessalines 2024-03-05 16:42:45 -05:00
parent 33be4f1106
commit 50731bff53
1 changed files with 1 additions and 0 deletions

View File

@ -51,6 +51,7 @@ impl LocalImage {
local_image::table local_image::table
.filter(local_image::local_user_id.eq(user_id)) .filter(local_image::local_user_id.eq(user_id))
.select(local_image::all_columns) .select(local_image::all_columns)
.order_by(local_image::published.desc())
.limit(limit) .limit(limit)
.offset(offset) .offset(offset)
.load::<LocalImage>(conn) .load::<LocalImage>(conn)