diff --git a/app/models/customer.rb b/app/models/customer.rb index 4aac258..0096b97 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 sync + def self.sync customers = get_base.service.query("SELECT Id, DisplayName FROM Customer WHERE Metadata.LastUpdatedTime>'#{Qbo.first.last_sync}' ") transaction do