fix UserGroupUpdateEndpoint err (#224)

This commit is contained in:
萧十一郎 2022-02-27 13:14:54 +08:00 committed by GitHub
parent e0477f201c
commit f457388b83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -82,7 +82,7 @@ func (service userGroupService) Update(userGroupId string, name string, members
return constant.ErrNameAlreadyUsed
}
if !errors.Is(gorm.ErrRecordNotFound, err) {
if errors.Is(gorm.ErrRecordNotFound, err) {
return err
}