From 9ea03d0c6d9ee9b68534150f6cdb3bda435b52c9 Mon Sep 17 00:00:00 2001 From: Ricky Barrette Date: Mon, 21 Feb 2022 05:23:11 -0500 Subject: [PATCH] Removed sync on view --- app/controllers/invoice_controller.rb | 5 ----- 1 file changed, 5 deletions(-) diff --git a/app/controllers/invoice_controller.rb b/app/controllers/invoice_controller.rb index beff2cc..203f1a4 100644 --- a/app/controllers/invoice_controller.rb +++ b/app/controllers/invoice_controller.rb @@ -23,10 +23,5 @@ class InvoiceController < ApplicationController invoice = base.fetch_by_id(params[:id]) @pdf = base.pdf(invoice) send_data @pdf, filename: "invoice #{invoice.doc_number}.pdf", :disposition => 'inline', :type => "application/pdf" - - Thread.new do - QboInvoice.sync_by_id params[:id] - ActiveRecord::Base.connection.close - end end end