updated ItemSyncService init call

This commit is contained in:
2026-03-15 07:50:07 -04:00
parent ec1ef72267
commit 2302679c3a

View File

@@ -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