Skip to content

Commit

Permalink
Merge pull request spree#49 from bonobos/change_fallback_last_pushed_…
Browse files Browse the repository at this point in the history
…time

Change fallback timestamp for last pushed time when an object hasn't bee...
  • Loading branch information
allisonlarson committed Feb 10, 2015
2 parents 5b05b51 + be09ec8 commit 94dd7cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/spree/wombat/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class Client
def self.push_batches(object, ts_offset = 5)
object_count = 0

last_push_time = Spree::Wombat::Config[:last_pushed_timestamps][object] || Time.now
last_push_time = Spree::Wombat::Config[:last_pushed_timestamps][object] || 1.hour.ago
this_push_time = Time.now

payload_builder = Spree::Wombat::Config[:payload_builder][object]
Expand Down

0 comments on commit 94dd7cc

Please sign in to comment.