diff --git a/app/models/customer.rb b/app/models/customer.rb index 5763fe9..4aac258 100644 --- a/app/models/customer.rb +++ b/app/models/customer.rb @@ -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