Sort notifications

This commit is contained in:
silverpill 2021-10-28 23:33:32 +00:00
parent b50da3e3a4
commit 6c050a37e6

View file

@ -72,6 +72,7 @@ pub async fn get_notifications(
LEFT JOIN actor_profile AS post_author
ON post.author_id = post_author.id
WHERE recipient_id = $1
ORDER BY notification.created_at DESC
",
&[&recipient_id],
).await?;