Skip user ticket counter background jobs on import.

This commit is contained in:
Martin Edenhofer 2019-05-23 15:34:01 +02:00 committed by Thorsten Eckel
parent 73472484a9
commit cd896bc6e1

View file

@ -12,6 +12,8 @@ class Observer::Ticket::UserTicketCounter < ActiveRecord::Observer
# return if we run import mode # return if we run import mode
return true if Setting.get('import_mode') return true if Setting.get('import_mode')
return true if BulkImportInfo.enabled?
return true if record.destroyed? return true if record.destroyed?
return true if !record.customer_id return true if !record.customer_id