From 7fb40ad4a836023eefe373ada77ebcf3bc58d99e Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Sat, 4 Jan 2020 13:09:09 -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 7693b7a..a338f1c 100644 --- a/app/controllers/qbo_controller.rb +++ b/app/controllers/qbo_controller.rb @@ -59,8 +59,8 @@ class QboController < ApplicationController qbo = Qbo.new qbo.qb_token = resp.token qbo.qb_secret = resp.refresh_token - qbo.token_expires_at = resp.access_token_expires_at - qbo.reconnect_token_at = resp.refresh_token_expires_at + qbo.token_expires_at = 6.months.from_now.utc + qbo.reconnect_token_at = 1.hour.from_now.utc qbo.company_id = params[:realmId] if qbo.save! redirect_to qbo_sync_path, :flash => { :notice => "Successfully connected to Quickbooks" }