Fix Autoclose Old tickets job
This commit is contained in:
parent
f4ca8178d7
commit
b91e2a3624
1 changed files with 2 additions and 4 deletions
|
|
@ -28,10 +28,8 @@ class AutoCloseOldTickets
|
|||
$oldStatus = $ticket->status;
|
||||
$ticket->status = TicketStatus::archived();
|
||||
$ticket->saveQuietly();
|
||||
if (!$ticket->subscriptions->contains($ticket->user)) {
|
||||
event(new TicketStatusChanged($ticket, $oldStatus, null, $message));
|
||||
}
|
||||
event(new NotifySubscriptions($ticket, $message));
|
||||
event(new TicketStatusChanged($ticket, $oldStatus, null, $message));
|
||||
event(new NotifySubscriptions($ticket, $message, collect($ticket->user)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue