From 68e3a7cc7c11d52a6649b0f9e4f8562793ca9b72 Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Tue, 17 May 2016 13:13:20 -0400 Subject: [PATCH] Update customer.rb --- app/models/customer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/customer.rb b/app/models/customer.rb index f72154a..45dafaf 100644 --- a/app/models/customer.rb +++ b/app/models/customer.rb @@ -106,7 +106,7 @@ class Customer < ActiveRecord::Base last = Qbo.first.last_sync query = "Select Id, DisplayName From Customer" - #query << " Where Metadata.LastUpdatedTime >= '#{last}' " if last + query << " Where Metadata.LastUpdatedTime >= '#{1.week.ago}' " if last query << " Order By DisplayName " customers = Qbo.get_base(:customer).service.query_in_batches(query, per_page: 100) do |batch|