Skip to content

Commit

Permalink
fix missing date in push payload if provided as root key
Browse files Browse the repository at this point in the history
  • Loading branch information
VladaPetrovic committed Sep 26, 2018
1 parent 28688bf commit 037bb15
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/databox/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ def handle(response)
end

def process_kpi(options={})
options.delete_if { |k, _| [:date, 'date'].include?(k) }

%i{key value}.each do |k|
raise("Missing '#{k}'") if (options[k] || options[k.to_s]).nil?
Expand Down

0 comments on commit 037bb15

Please sign in to comment.