mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-05 10:19:54 +02: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:
1 parent
77ab60df83
commit
2eb15f4a61
5 files changed
+108
-11
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user