Skip to content

Commit 0ad1b75

Browse files
committed
feat: Changed sorting of notifications
1 parent 9f63b09 commit 0ad1b75

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tasky/src/models/notification.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ impl NotificationRepository {
102102
.left_join(notification_targets::table)
103103
.filter(notification_targets::user_id.eq(user_id))
104104
.select(Notification::as_select())
105+
.order(dsl::created_at.desc())
105106
.get_results::<Notification>(conn)
106107
.expect("Cannot get notifications for user")
107108
}

0 commit comments

Comments
 (0)