fix UserGroupUpdateEndpoint err (#224)
This commit is contained in:
parent
e0477f201c
commit
f457388b83
@ -82,7 +82,7 @@ func (service userGroupService) Update(userGroupId string, name string, members
|
|||||||
return constant.ErrNameAlreadyUsed
|
return constant.ErrNameAlreadyUsed
|
||||||
}
|
}
|
||||||
|
|
||||||
if !errors.Is(gorm.ErrRecordNotFound, err) {
|
if errors.Is(gorm.ErrRecordNotFound, err) {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user