Skip to content

Commit

Permalink
requests: manage sending notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
anikachurilova authored and ntarocco committed Nov 15, 2024
1 parent 5cba3e0 commit 16192ab
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions invenio_requests/services/requests/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,9 @@ def _execute(self, identity, request, action, uow):
action_obj.execute(identity, uow)

@unit_of_work()
def execute_action(self, identity, id_, action, data=None, uow=None, expand=False):
def execute_action(
self, identity, id_, action, data=None, uow=None, expand=False, **kwargs
):
"""Execute the given action for the request, if possible.
For instance, it would be not possible to execute the specified
Expand All @@ -244,7 +246,7 @@ def execute_action(self, identity, id_, action, data=None, uow=None, expand=Fals
raise CannotExecuteActionError(action)

# Execute action and register request for persistence.
action_obj.execute(identity, uow)
action_obj.execute(identity, uow, **kwargs)
uow.register(RecordCommitOp(request, indexer=self.indexer))

# Assuming that data is just for comment payload
Expand Down

0 comments on commit 16192ab

Please sign in to comment.