Skip to content
Snippets Groups Projects
Commit ae887f40 authored by Kapil Patel's avatar Kapil Patel
Browse files

Add minor changes

parent 320e8079
No related branches found
No related tags found
1 merge request!117Refector DOI registration
Pipeline #6134 failed
......@@ -11,9 +11,9 @@ module Hyrax
# Genrate DOI for dataset
module RegisterDoi
def self.call(target:, **)
return true if ENV.fetch('REGISTER_DOI', 'true') == 'false'
RegisterDoiWorker.perform_async(target.id, target.class.name) if ENV.fetch('REGISTER_DOI', 'true') == 'true'
RegisterDoiWorker.perform_async(target.id, target.class.name)
return true
end
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment