Skip to content

Commit

Permalink
COMPATIBILITY: sidekiq now requires strict JSON arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
merefield committed Feb 23, 2022
1 parent 34b022e commit 1340b17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/bot.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ def on_post_created(post)
def invoke_background_job(job_class, opts)
delay_in_seconds = DELAY_IN_SECONDS.to_i
if delay_in_seconds > 0
job_class.perform_in(delay_in_seconds.seconds, opts)
job_class.perform_in(delay_in_seconds.seconds, opts.as_json)
else
job_class.perform_async(opts)
job_class.perform_async(opts.as_json)
end
end

Expand Down

0 comments on commit 1340b17

Please sign in to comment.