Order newest notifications first
All checks were successful
continuous-integration/drone/pr Build is passing
All checks were successful
continuous-integration/drone/pr Build is passing
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.
|
err = s.
|
||||||
Where("notifiable_id = ?", notifiableID).
|
Where("notifiable_id = ?", notifiableID).
|
||||||
Limit(limit, start).
|
Limit(limit, start).
|
||||||
|
OrderBy("id DESC").
|
||||||
Find(¬ifications)
|
Find(¬ifications)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, 0, 0, err
|
return nil, 0, 0, err
|
||||||
|
|
Loading…
Reference in New Issue
Block a user