From a5342c3ef506e6f14100fd4ffb710ab1ebb58f13 Mon Sep 17 00:00:00 2001 From: Evan Chen Date: Sun, 19 Dec 2021 22:30:50 +0800 Subject: [PATCH] update --- auth/api_grp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))