Order newest notifications first
continuous-integration/drone/pr Build is passing Details

This commit is contained in:
kolaente 2021-02-21 15:01:52 +01:00
parent 7c4923cd38
commit 74b8a097db
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 1 additions and 0 deletions

View File

@ -53,6 +53,7 @@ func GetNotificationsForUser(s *xorm.Session, notifiableID int64, limit, start i
err = s.
Where("notifiable_id = ?", notifiableID).
Limit(limit, start).
OrderBy("id DESC").
Find(&notifications)
if err != nil {
return nil, 0, 0, err