From ad5678d02db3b399b7adcb021a919d75a32b1c1d Mon Sep 17 00:00:00 2001 From: Dany Khalife Date: Thu, 26 Dec 2024 23:42:51 -0800 Subject: [PATCH] unable to save to None without this --- internal/user/handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/user/handler.go b/internal/user/handler.go index 9d861f9..bbeebf7 100644 --- a/internal/user/handler.go +++ b/internal/user/handler.go @@ -507,7 +507,7 @@ func (h *Handler) UpdateNotificationTarget(c *gin.Context) { type Request struct { Type nModel.NotificationType `json:"type"` - Target string `json:"target" binding:"required"` + Target string `json:"target"` } var req Request