Skip tickets with missing pending or escalation time.
This commit is contained in:
parent
e91553d164
commit
81539e11f6
1 changed files with 4 additions and 0 deletions
|
@ -56,6 +56,8 @@ module ICal::Ticket
|
|||
events_data = []
|
||||
tickets.each do |ticket|
|
||||
|
||||
next if !ticket.pending_time
|
||||
|
||||
event_data = {}
|
||||
|
||||
# rubocop:disable Rails/TimeZone
|
||||
|
@ -86,6 +88,8 @@ module ICal::Ticket
|
|||
events_data = []
|
||||
tickets.each do |ticket|
|
||||
|
||||
next if !ticket.escalation_time
|
||||
|
||||
event_data = {}
|
||||
|
||||
# rubocop:disable Rails/TimeZone
|
||||
|
|
Loading…
Reference in a new issue