diff --git a/lib/sidekiq_unique_jobs/lock_config.rb b/lib/sidekiq_unique_jobs/lock_config.rb index e40e3e91..c6a592d8 100644 --- a/lib/sidekiq_unique_jobs/lock_config.rb +++ b/lib/sidekiq_unique_jobs/lock_config.rb @@ -113,13 +113,13 @@ def errors_as_string # the strategy to use as conflict resolution from sidekiq client def on_client_conflict - @on_client_conflict ||= on_conflict["client"] if on_conflict.is_a?(Hash) + @on_client_conflict ||= on_conflict["client"] || on_conflict[:client] if on_conflict.is_a?(Hash) @on_client_conflict ||= on_conflict end # the strategy to use as conflict resolution from sidekiq server def on_server_conflict - @on_server_conflict ||= on_conflict["server"] if on_conflict.is_a?(Hash) + @on_server_conflict ||= on_conflict["server"] || on_conflict[:server] if on_conflict.is_a?(Hash) @on_server_conflict ||= on_conflict end end