diff options
author | Ethan Koenig <etk39@cornell.edu> | 2017-01-30 09:21:49 -0500 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2017-01-30 22:21:49 +0800 |
commit | 2eb15f4a611393a4cbfcd91054f92ade302be62f (patch) | |
tree | cbc3c1b448d0fe0ec4db19bae480682559ba2272 /routers/user/notification.go | |
parent | 77ab60df83c5fb60ef8d7c4fe63ac222e3670112 (diff) | |
download | gitea-2eb15f4a611393a4cbfcd91054f92ade302be62f.tar.gz gitea-2eb15f4a611393a4cbfcd91054f92ade302be62f.zip |
Unit tests and remove unused functions in models/notification (#796)
* Unit tests and remove unused functions in models/notification
* Read -> Unread
Diffstat (limited to 'routers/user/notification.go')
-rw-r--r-- | routers/user/notification.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/user/notification.go b/routers/user/notification.go index 7bc2da18db..deb98d589c 100644 --- a/routers/user/notification.go +++ b/routers/user/notification.go @@ -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 |