Update qbo.rb

This commit is contained in:
2020-01-05 01:22:27 -05:00
committed by GitHub
parent 4a5b83265d
commit 719abe20a6

View File

@@ -39,7 +39,7 @@ class Qbo < ActiveRecord::Base
access_token = OAuth2::AccessToken.from_hash(oauth2_client, qbo.token )
# check to see if we need to refresh the token
if qbo.expire.to_time.passed?
#if qbo.expire.to_time.passed?
new_access_token_object = access_token.refresh!
qbo.token = new_access_token_object.to_hash
#qbo.qb_token = new_access_token_object.token
@@ -47,7 +47,7 @@ class Qbo < ActiveRecord::Base
qbo.expire = 1.hour.from_now.utc
qbo.save!
access_token = new_access_token_object
end
#end
case type
when :item