Update customer.rb

This commit is contained in:
2016-05-02 13:02:11 -04:00
parent 40f4e6e00e
commit 86327723b8

View File

@@ -100,7 +100,7 @@ class Customer < ActiveRecord::Base
# proforms a bruteforce sync operation
# This needs to be simplified
def sync
def self.sync
customers = get_base.service.query("SELECT Id, DisplayName FROM Customer WHERE Metadata.LastUpdatedTime>'#{Qbo.first.last_sync}' ")
transaction do