mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-08 17:04:23 -05:00
missed this authenticated_request
This commit is contained in:
@@ -49,9 +49,9 @@ class Estimate < ActiveRecord::Base
|
|||||||
def self.update(id)
|
def self.update(id)
|
||||||
# Update the item table
|
# Update the item table
|
||||||
qbo = Qbo.first
|
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)
|
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
|
end
|
||||||
|
|
||||||
return unless estimate
|
return unless estimate
|
||||||
|
|||||||
Reference in New Issue
Block a user