diff --git a/auth/api_grp.go b/auth/api_grp.go index c209cc0..fe7b998 100644 --- a/auth/api_grp.go +++ b/auth/api_grp.go @@ -73,7 +73,7 @@ func ApiGrpUpdate(c *gin.Context) { if err := c.ShouldBindJSON(&data); err != nil { panic(err) } - grp := &Group{} + grp := &Group{Name: data.Name} err := DB.First(grp, data.ID).Error if err != nil { panic(errors.NewError(404, err))