Skip to content

Commit 4e4e03a

Browse files
authored
unable to save to None without this (#2)
1 parent 883368f commit 4e4e03a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/user/handler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ func (h *Handler) UpdateNotificationTarget(c *gin.Context) {
507507

508508
type Request struct {
509509
Type nModel.NotificationType `json:"type"`
510-
Target string `json:"target" binding:"required"`
510+
Target string `json:"target"`
511511
}
512512

513513
var req Request

0 commit comments

Comments
 (0)