Update qbo.rb

This commit is contained in:
2020-01-04 22:52:01 -05:00
committed by GitHub
parent 0364989fe1
commit 0d4d5a6136

View File

@@ -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?