Skip to content

Commit 51136f7

Browse files
committed
nit
1 parent 12d8af8 commit 51136f7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

routers/web/user/notification.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,9 @@ func getNotifications(c *context.Context) {
143143
// NotificationStatusPost is a route for changing the status of a notification
144144
func NotificationStatusPost(c *context.Context) {
145145
var (
146-
notificationID, _ = strconv.ParseInt(c.Req.PostFormValue("notification_id"), 10, 64)
147-
statusStr = c.Req.PostFormValue("status")
148-
status models.NotificationStatus
146+
notificationID = c.FormInt64("notification_id")
147+
statusStr = c.FormString("status")
148+
status models.NotificationStatus
149149
)
150150

151151
switch statusStr {

0 commit comments

Comments
 (0)