fix UserGroupUpdateEndpoint err (#224)
This commit is contained in:
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user