fix UserGroupUpdateEndpoint err (#224)
This commit is contained in:
1 file changed
+1
-1
@@ -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