Skip to content

Commit

Permalink
global: rename registered services
Browse files Browse the repository at this point in the history
  • Loading branch information
Pablo Panero authored and ppanero committed Apr 7, 2022
1 parent f36116a commit d536c0a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion invenio_drafts_resources/services/records/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ def cleanup_drafts(seconds=3600):
last update of the draft in order to be hard deleted.
"""
timedelta_param = timedelta(seconds=seconds)
service = current_service_registry.get("rdm-records")
service = current_service_registry.get("records")
service.cleanup_drafts(timedelta_param)
2 changes: 1 addition & 1 deletion tests/services/test_record_service_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def input_data(input_data):
def base_app(base_app, service):
"""Application factory fixture."""
registry = base_app.extensions['invenio-records-resources'].registry
registry.register(service, service_id='rdm-records')
registry.register(service, service_id='records')
yield base_app


Expand Down

0 comments on commit d536c0a

Please sign in to comment.