commit
bf669116c9
2 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
|
@ -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|
|
||||
|
|
Loading…
Reference in a new issue