From 2302679c3afd4ddf97d438182e2799362e95f344 Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Sun, 15 Mar 2026 07:50:07 -0400 Subject: [PATCH] updated ItemSyncService init call --- app/jobs/item_sync_job.rb | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/app/jobs/item_sync_job.rb b/app/jobs/item_sync_job.rb index fa1303a..8f23969 100644 --- a/app/jobs/item_sync_job.rb +++ b/app/jobs/item_sync_job.rb @@ -14,13 +14,8 @@ class ItemSyncJob < ApplicationJob # Performs a sync of items from QuickBooks Online. def perform(full_sync: false, id: nil) - qbo = QboConnectionService.current! - raise "No QBO configuration found" unless qbo - log "Starting #{full_sync ? 'full' : 'incremental'} sync for item ##{id || 'all'}..." - - service = ItemSyncService.new(qbo: qbo) - + service = ItemSyncService.new if id.present? service.sync_by_id(id) else