Skip to content

Commit

Permalink
RevokeEditFromDepositor service should invoke job asynchronously if i…
Browse files Browse the repository at this point in the history
…ts intent is to run in the background

Refs #1477
  • Loading branch information
mjgiarlo committed Aug 10, 2017
1 parent ffc0073 commit 99c36b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/services/hyrax/workflow/revoke_edit_from_depositor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def self.call(target:, **)
target.edit_users -= [target.depositor]
# If there are a lot of members, revoking access from each could take a
# long time. Do this work in the background.
RevokeEditFromMembersJob.perform_now(target, target.depositor)
RevokeEditFromMembersJob.perform_later(target, target.depositor)
end
end
end
Expand Down

0 comments on commit 99c36b3

Please sign in to comment.