mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-31 20:02:09 +00:00
Unit tests and remove unused functions in models/notification (#796)
* Unit tests and remove unused functions in models/notification * Read -> Unread
This commit is contained in:
parent
77ab60df83
commit
2eb15f4a61
5 changed files with 108 additions and 11 deletions
|
@ -28,7 +28,7 @@ func GetNotificationCount(c *context.Context) {
|
|||
return
|
||||
}
|
||||
|
||||
count, err := models.GetNotificationUnreadCount(c.User)
|
||||
count, err := models.GetNotificationCount(c.User, models.NotificationStatusUnread)
|
||||
if err != nil {
|
||||
c.Handle(500, "GetNotificationCount", err)
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue