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