Skip to content

Commit

Permalink
[refactoring] #48
Browse files Browse the repository at this point in the history
  • Loading branch information
yoneyan committed May 13, 2022
1 parent 4e9b7e2 commit 25e3f14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/api/core/group/v0/admin.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 25e3f14

Please sign in to comment.