From 0364989fe1eee8efa3d876c0283832c562105a3e Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Sat, 4 Jan 2020 22:46:20 -0500 Subject: [PATCH] Update qbo_controller.rb --- app/controllers/qbo_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/qbo_controller.rb b/app/controllers/qbo_controller.rb index c5345af..669c7c4 100644 --- a/app/controllers/qbo_controller.rb +++ b/app/controllers/qbo_controller.rb @@ -1,6 +1,6 @@ #The MIT License (MIT) # -#Copyright (c) 2017 rick barrette +#Copyright (c) 2020 rick barrette # #Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: # @@ -66,7 +66,7 @@ class QboController < ApplicationController qbo.company_id = params[:realmId] access_token = OAuth2::AccessToken.new(oauth2_client, resp.token, refresh_token: resp.refresh_token) - qbo.token = access_token + qbo.token = access_token.to_hash qbo.expire = 1.hour.from_now.utc if qbo.save!