Skip to content
Snippets Groups Projects
Commit e1699690 authored by Arnaud Levy's avatar Arnaud Levy
Browse files

Fix [skip ci]

parent d08fd42c
No related branches found
No related tags found
No related merge requests found
......@@ -28,7 +28,7 @@ module Research::Hal
def self.clear_queue!
ids = []
Delayed::Job.find_each do |job|
if job.payload_object.method_name == :sync_indirect_object_with_git_without_delay &&
if job.payload_object&.method_name == :sync_indirect_object_with_git_without_delay &&
job.payload_object.args.first.is_a?(Research::Hal::Publication)
ids << job.id
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