Skip to content

Commit

Permalink
Serialize locals
Browse files Browse the repository at this point in the history
  • Loading branch information
xuanxu committed Feb 28, 2023
1 parent 46dfe7c commit 9540b29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/responders/welcome_responder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ def process_message(message)
external_service(params[:external_service]) if params[:external_service]

if params[:check_references] && !target_repo_value.empty?
DOIWorker.perform_async(locals, target_repo_value, branch_name_value)
DOIWorker.perform_async(serializable(locals), target_repo_value, branch_name_value)
end

if params[:repo_checks] && !target_repo_value.empty?
checks = params[:repo_checks].is_a?(Hash) ? params[:repo_checks][:checks] : nil
RepoChecksWorker.perform_async(locals, target_repo_value, branch_name_value, checks)
RepoChecksWorker.perform_async(serializable(locals), target_repo_value, branch_name_value, checks)
end

if params[:run_responder]
Expand Down

0 comments on commit 9540b29

Please sign in to comment.