mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-08 17:04:23 -05:00
Update qbo.rb
This commit is contained in:
@@ -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 access_token.expired?
|
||||
#if access_token.expired?
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user