From 90a7ac1267be140867eab47e42c6b13d55094636 Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Thu, 28 Jul 2016 09:02:29 -0400 Subject: [PATCH] Webhook --- app/models/customer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/customer.rb b/app/models/customer.rb index 64b3882..5b2f322 100644 --- a/app/models/customer.rb +++ b/app/models/customer.rb @@ -145,7 +145,7 @@ class Customer < ActiveRecord::Base def self.sync(id) service = Qbo.get_base(:customer).service - customer = service.find_by_id(id) + customer = service.fetch_by_id(id) qbo_customer = Customer.find_or_create_by(id: customer.id) if customer.active? if not qbo_customer.name.eql? customer.display_name