Merge pull request #6732 from betagouv/main

2021-12-07-05
This commit is contained in:
mfo 2021-12-07 16:23:07 +01:00 committed by GitHub
commit bf669116c9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -43,7 +43,7 @@ class Helpscout::API
end
def add_phone_number(email, phone)
query = URI.encode("(email:#{email})")
query = CGI.escape("(email:#{email})")
response = call_api(:get, "#{CUSTOMERS}?mailbox=#{user_support_mailbox_id}&query=#{query}")
if response.success?
body = parse_response_body(response)

View file

@ -3,7 +3,7 @@ namespace :after_party do
task set_dossiers_processed_at: :environment do
puts "Running deploy task 'set_dossiers_processed_at'"
dossiers = Dossier.termine.includes(:traitement)
dossiers = Dossier.with_discarded.state_termine.includes(:traitement)
progress = ProgressReport.new(dossiers.count)
dossiers.find_each do |dossier|