From c5a461f12a06104fe7aeec27ed758c6f847106dc Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Tue, 17 May 2016 07:54:51 -0400 Subject: [PATCH] Update qbo_item.rb --- app/models/qbo_item.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/qbo_item.rb b/app/models/qbo_item.rb index 492722c..0ecdcd5 100644 --- a/app/models/qbo_item.rb +++ b/app/models/qbo_item.rb @@ -23,7 +23,7 @@ class QboItem < ActiveRecord::Base query = "SELECT Id, Name FROM Item" query << "WHERE Type = 'Service'" - #query << "AND Metadata.LastUpdatedTime > '#{last}'" if last + #query << " AND Metadata.LastUpdatedTime > '#{last}' " if last items = get_base.service.query() transaction do @@ -37,6 +37,6 @@ class QboItem < ActiveRecord::Base end #remove deleted items - where.not(items.map(&:id)).destroy_all + QboItem.where.not(items.map(&:id)).destroy_all end end