mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2026-10-03 17:00:43 -04:00
missed this authenticated_request
This commit is contained in:
1 parent
2985fad77c
commit
0c72ca9294
1 file changed
+2
-2
@@ -49,9 +49,9 @@ class Estimate < ActiveRecord::Base
|
||||
def self.update(id)
|
||||
# Update the item table
|
||||
qbo = Qbo.first
|
||||
qbo.perform_authenticated_request do |access_token|
|
||||
estimate = qbo.perform_authenticated_request do |access_token|
|
||||
service = Quickbooks::Service::Estimate.new(:company_id => qbo.realm_id, :access_token => access_token)
|
||||
estimate = service.fetch_by_id(id)
|
||||
service.fetch_by_id(id)
|
||||
end
|
||||
|
||||
return unless estimate
|
||||
|
||||
Reference in new issue
Block a user