CHANGE_API
This commit is contained in:
parent
f827b83e7c
commit
1c2a473c5a
@ -110,14 +110,17 @@ class ThzController extends BaseController
|
|||||||
->where('thz_master.thz_id', $thz_id)
|
->where('thz_master.thz_id', $thz_id)
|
||||||
->findAll();
|
->findAll();
|
||||||
|
|
||||||
$notes = $this->thzMasterNotesModel->ticketConversationList($thz_id);
|
if(!empty($result['master'])){
|
||||||
$result['notes'] = !empty($notes) ? $notes : [];
|
$notes = $this->thzMasterNotesModel->ticketConversationList($thz_id);
|
||||||
|
$result['notes'] = !empty($notes) ? $notes : [];
|
||||||
|
}else{
|
||||||
|
return $this->response->setJSON((['status' => 'error', 'message' => 'No tickets master found']))->setStatusCode(400);
|
||||||
|
}
|
||||||
}else{
|
}else{
|
||||||
return $this->response->setJSON((['status' => 'error', 'message' => 'No tickets found']))->setStatusCode(404);
|
return $this->response->setJSON((['status' => 'error', 'message' => 'No tickets found']))->setStatusCode(404);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->response->setJSON((['status' => 'success', 'data' => $result]))->setStatusCode(400);
|
return $this->response->setJSON((['status' => 'success', 'data' => $result]))->setStatusCode(200);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user