Order newest notifications first
continuous-integration/drone/pr Build is passing
Details
continuous-integration/drone/pr Build is passing
Details
This commit is contained in:
parent
7c4923cd38
commit
74b8a097db
|
@ -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(¬ifications)
|
||||
if err != nil {
|
||||
return nil, 0, 0, err
|
||||
|
|
Loading…
Reference in New Issue