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:
Ethan Koenig 2017-01-30 09:21:49 -05:00 committed by Lunny Xiao
parent 77ab60df83
commit 2eb15f4a61
5 changed files with 108 additions and 11 deletions

View file

@ -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