mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2026-10-04 09:10:43 -04:00
Update customer.rb
This commit is contained in:
1 parent
23b06ced47
commit
97c65b703f
1 file changed
+5
-1
@@ -95,7 +95,11 @@ class Customer < ActiveRecord::Base
|
||||
|
||||
# returns the QBO customer
|
||||
def get_customer (id)
|
||||
get_base.find_by_id(id)
|
||||
begin
|
||||
return get_base.find_by_id(id)
|
||||
rescue
|
||||
return nil
|
||||
end
|
||||
end
|
||||
|
||||
# proforms a bruteforce sync operation
|
||||
|
||||
Reference in new issue
Block a user