diff --git a/invenio_users_resources/records/api.py b/invenio_users_resources/records/api.py index 44ae1c4..99233b6 100644 --- a/invenio_users_resources/records/api.py +++ b/invenio_users_resources/records/api.py @@ -428,9 +428,9 @@ class DomainAggregate(BaseAggregate): @classmethod def get_record(cls, id_): - """Get the user via the specified ID.""" + """Get the domain via the specified ID.""" with db.session.no_autoflush: - domain = current_datastore.find_domain(id_) + domain = current_datastore.find_domain_by_id(id_) if domain is None: raise NoResultFound() return cls.from_model(domain)