Update customer.rb

This commit is contained in:
2016-05-02 12:58:40 -04:00
parent 19f1ffa89c
commit a4a043a2d9

View File

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