1
0
Fork 0
forked from forgejo/forgejo

Notifications API: respond with updated notifications (#17064)

* notifications api: return updated notifications in response

* make generate-swagger

* openapi fix

Co-authored-by: zeripath <art27@cantab.net>
This commit is contained in:
Norwin 2021-09-18 01:40:50 +02:00 committed by GitHub
parent ba2e600d17
commit 0ffad31b92
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 37 additions and 23 deletions

View file

@ -160,7 +160,7 @@ func NotificationStatusPost(c *context.Context) {
return
}
if err := models.SetNotificationStatus(notificationID, c.User, status); err != nil {
if _, err := models.SetNotificationStatus(notificationID, c.User, status); err != nil {
c.ServerError("SetNotificationStatus", err)
return
}