From db6f8a009352fd964f327f7f017eb48a69df3bfb Mon Sep 17 00:00:00 2001 From: Juan Wajnerman Date: Mon, 5 Jan 2015 14:54:35 -0300 Subject: [PATCH] Fix Fusion tables push --- app/models/call_flow/fusion_tables_push.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/call_flow/fusion_tables_push.rb b/app/models/call_flow/fusion_tables_push.rb index 2f25156af..fe685854e 100644 --- a/app/models/call_flow/fusion_tables_push.rb +++ b/app/models/call_flow/fusion_tables_push.rb @@ -52,7 +52,7 @@ def upload_call_data ids = call_flow.step_names.keys values = [call_log.id, call_log.address, call_log.state, call_log.started_at, call_log.finished_at] - call_log.step_activities.each do |trace| + CallLog.poirot_activities(call_log.id).each do |trace| begin index = ids.index(trace.fields['step_id']) * 2 + 5 values[index] = trace.fields['step_result']