mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-08 08:54:23 -05:00
Update qbo.rb
This commit is contained in:
@@ -35,7 +35,7 @@ class Qbo < ActiveRecord::Base
|
||||
oauth2_client = get_client
|
||||
qbo = self.first
|
||||
#access_token = OAuth2::AccessToken.new(oauth2_client, qbo.qb_token , refresh_token: qbo.qb_secret)
|
||||
access_token = OAuth2::AccessToken.from_hash qbo.token
|
||||
access_token = OAuth2::AccessToken.from_hash(oauth2_client, qbo.token)
|
||||
|
||||
# check to see if we need to refest the token
|
||||
if qbo.expire.to_date.past?
|
||||
|
||||
Reference in New Issue
Block a user