fix UserGroupUpdateEndpoint err (#224)

This commit is contained in:
萧十一郎
2022-02-27 13:14:54 +08:00
committed by GitHub
parent e0477f201c
commit f457388b83

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
}