MSP-1756 update role repo

This commit is contained in:
riabovvo committed 2023-05-23 20:32:04 +03:00
1 parent 7e899197ec
commit 7f7216b91a
2 files changed
+9 -10

No files matched your search

+1 -1
View File
@@ -80,7 +80,7 @@ func (u Role) Update(ctx context.Context, req domain.UpdateRoleRequest, adminId
case errors.Is(err, domain.ErrNotFound):
break
case err != nil:
return nil, errors.WithMessagef(err, "get role by id")
return nil, errors.WithMessagef(err, "get role by name")
}
roles, err := u.roleRepo.GetRoleByIds(ctx, []int{req.Id})