FIX_refix

This commit is contained in:
venba-Inspriron-3558 2025-08-20 18:46:57 +05:30
parent 66e9fc6ffc
commit e97d623021

View File

@ -71,10 +71,12 @@ class ThzController extends BaseController
$returnType = strtolower($this->request->getGet('return_type') ?? 'api');
$data = $this->request->getGet();
$tickets = $this->fetchTicketsBasedOnrole($data);
if ($returnType === 'api') {
if (empty($tickets)) {
return $this->response->setJSON([ 'status' => 'error','message' => 'No tickets found'])->setStatusCode(404);