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 authored and Lunny Xiao committed 2017-01-30 22:21:49 +08:00
1 parent 77ab60df83
commit 2eb15f4a61
5 files changed
+108 -11

No files matched your search

+1 -1
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