unable to save to None without this

This commit is contained in:
Dany Khalife 2024-12-26 23:42:51 -08:00
parent dd93580f89
commit ad5678d02d

View file

@ -507,7 +507,7 @@ func (h *Handler) UpdateNotificationTarget(c *gin.Context) {
type Request struct { type Request struct {
Type nModel.NotificationType `json:"type"` Type nModel.NotificationType `json:"type"`
Target string `json:"target" binding:"required"` Target string `json:"target"`
} }
var req Request var req Request