diff --git a/invenio_rdm_records/services/review/service.py b/invenio_rdm_records/services/review/service.py index 1835c204b..8945227ad 100644 --- a/invenio_rdm_records/services/review/service.py +++ b/invenio_rdm_records/services/review/service.py @@ -183,6 +183,7 @@ def submit(self, identity, id_, data=None, require_review=False, uow=None): # request object draft.parent.review = request uow.register(ParentRecordCommitOp(draft.parent)) + uow.register(RecordIndexOp(draft, indexer=self.indexer)) if not require_review: request_item = current_rdm_records.community_inclusion_service.include( @@ -196,5 +197,4 @@ def submit(self, identity, id_, data=None, require_review=False, uow=None): ) ) ) - uow.register(RecordIndexOp(draft, indexer=self.indexer)) return request_item