lib/tunemygc/syncer.rb in tunemygc-1.0.8 vs lib/tunemygc/syncer.rb in tunemygc-1.0.9
- old
+ new
@@ -95,10 +95,10 @@
snapshotter.clear
end
def process_config_callback(response)
config = client.get(URI(response.body).path)
- ActiveSupport::JSON.decode(config.body).merge('callback' => response.body)
+ ActiveSupport::JSON.decode(config.body).merge('report' => response.body.gsub(/\.json$/, ''))
rescue Exception => e
TuneMyGc.log "Failed to process config callback url #{response.body} (error: #{e})"
return false
end
end
\ No newline at end of file