Skip user ticket counter background jobs on import.
This commit is contained in:
parent
73472484a9
commit
cd896bc6e1
1 changed files with 2 additions and 0 deletions
|
@ -12,6 +12,8 @@ class Observer::Ticket::UserTicketCounter < ActiveRecord::Observer
|
|||
# return if we run import mode
|
||||
return true if Setting.get('import_mode')
|
||||
|
||||
return true if BulkImportInfo.enabled?
|
||||
|
||||
return true if record.destroyed?
|
||||
|
||||
return true if !record.customer_id
|
||||
|
|
Loading…
Reference in a new issue