Fix domain group update
continuous-integration/drone/push Build was killed Details

This commit is contained in:
nemunaire 2023-03-10 07:49:49 +01:00
parent 689031d848
commit 98d81809b3
1 changed files with 1 additions and 1 deletions

View File

@ -193,7 +193,7 @@ func GetDomain(c *gin.Context) {
func UpdateDomain(c *gin.Context) {
old := c.MustGet("domain").(*happydns.Domain)
var domain apiDomain
var domain happydns.Domain
err := c.ShouldBindJSON(&domain)
if err != nil {
c.AbortWithStatusJSON(http.StatusBadRequest, gin.H{"errmsg": err.Error()})