Skip to content

Commit

Permalink
Fix bug where notification check does not use configuration (#857)
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchellhenke authored Feb 21, 2023
1 parent 5093a59 commit dc4fcf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/good_job/adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,8 @@ def in_server_process?
end

def send_notify?(active_job)
return true unless active_job.respond_to?(:good_job_notify)
return false unless GoodJob.configuration.enable_listen_notify
return true unless active_job.respond_to?(:good_job_notify)

!(active_job.good_job_notify == false || (active_job.class.good_job_notify == false && active_job.good_job_notify.nil?))
end
Expand Down

0 comments on commit dc4fcf9

Please sign in to comment.