From 7a6da540c3c0a3b2c4259564f9b82c7cb9e8cc5c Mon Sep 17 00:00:00 2001 From: Carlin MacKenzie Date: Wed, 6 Nov 2024 16:43:06 +0100 Subject: [PATCH] bug: get domain via id --- invenio_users_resources/records/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)