From 25e3f14a3678bd6d17d943f23e12be9dd4e150c7 Mon Sep 17 00:00:00 2001 From: yoneyan Date: Fri, 13 May 2022 17:09:02 +0900 Subject: [PATCH] [refactoring] #48 --- pkg/api/core/group/v0/admin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/api/core/group/v0/admin.go b/pkg/api/core/group/v0/admin.go index d15ec5b3..692c0d32 100644 --- a/pkg/api/core/group/v0/admin.go +++ b/pkg/api/core/group/v0/admin.go @@ -53,7 +53,7 @@ func DeleteByAdmin(c *gin.Context) { return } - if err := dbGroup.Delete(&core.Group{Model: gorm.Model{ID: uint(id)}}); err != nil { + if err = dbGroup.Delete(&core.Group{Model: gorm.Model{ID: uint(id)}}); err != nil { c.JSON(http.StatusInternalServerError, common.Error{Error: err.Error()}) return }