fix wrong exception on ticket send
This commit is contained in:
parent
dc7cc3e7c1
commit
e513750017
1 changed files with 2 additions and 2 deletions
|
|
@ -17,7 +17,7 @@ use App\Models\Project;
|
|||
use App\Models\Ticket;
|
||||
use App\Models\User;
|
||||
use Exception;
|
||||
use Illuminate\Database\QueryException;
|
||||
use Illuminate\Database\Eloquent\ModelNotFoundException;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Illuminate\Support\Facades\File;
|
||||
use Illuminate\Support\Facades\Mail;
|
||||
|
|
@ -233,7 +233,7 @@ class TicketController extends Controller
|
|||
$user,
|
||||
new TicketMention($ticket, $message->message)
|
||||
);
|
||||
} catch (QueryException $e) {
|
||||
} catch (ModelNotFoundException $e) {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue