Skip to content

Commit

Permalink
bug: get domain via id
Browse files Browse the repository at this point in the history
  • Loading branch information
carlinmack committed Nov 6, 2024
1 parent 08589f9 commit 7a6da54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions invenio_users_resources/records/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7a6da54

Please sign in to comment.