Refactor estimate synchronization to use EstimateSyncJob; remove direct sync logic from Estimate model for improved background processing

This commit is contained in:
ricky committed 2026-02-27 08:29:52 -05:00
1 parent 3d37f01bff
commit f32b48296d
3 files changed
+92 -16

No files matched your search

+1 -1
View File
@@ -94,13 +94,13 @@ class QboController < ApplicationController
logger.info "Syncing EVERYTHING"
CustomerSyncJob.perform_later(full_sync: true)
EstimateSyncJob.perform_later(full_sync: true)
# Update info in background
Thread.new do
if Qbo.exists?
Invoice.sync
Employee.sync
Estimate.sync
# Record the last sync time
Qbo.update_time_stamp