mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
fix store message
This commit is contained in:
@ -217,7 +217,7 @@ class ChatController extends BaseController
|
||||
if($auth_user_in_department_count){
|
||||
$users_always_in_department = array_map(fn($q) => $q->id,$chatDepartmentUsers);
|
||||
if(!in_array(auth()->user()->id,$users_always_in_department)){
|
||||
$this->chatDeparmentUserModel->insert(['chat_department_id' => $data["chat_department_id"],'presupuesto_id' => $data['model_id']]);
|
||||
$this->chatDeparmentUserModel->insert(['chat_department_id' => $data["chat_department_id"],'user_id' => auth()->user()->id,'presupuesto_id' => $data['model_id']]);
|
||||
}
|
||||
}
|
||||
|
||||
@ -257,7 +257,8 @@ class ChatController extends BaseController
|
||||
if($auth_user_in_department_count){
|
||||
$users_always_in_department = array_map(fn($q) => $q->id,$chatDepartmentUsers);
|
||||
if(!in_array(auth()->user()->id,$users_always_in_department)){
|
||||
$this->chatDeparmentUserModel->insert(['chat_department_id' => $data["chat_department_id"],'pedido_id' => $data['model_id']]);
|
||||
$this->chatDeparmentUserModel->insert(['chat_department_id' => $data["chat_department_id"],'user_id' => auth()->user()->id,'pedido_id' => $data['model_id']]);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@ -297,7 +298,8 @@ class ChatController extends BaseController
|
||||
if($auth_user_in_department_count){
|
||||
$users_always_in_department = array_map(fn($q) => $q->id,$chatDepartmentUsers);
|
||||
if(!in_array(auth()->user()->id,$users_always_in_department)){
|
||||
$this->chatDeparmentUserModel->insert(['chat_department_id' => $data["chat_department_id"],'factura_id' => $data['model_id']]);
|
||||
$this->chatDeparmentUserModel->insert(['chat_department_id' => $data["chat_department_id"],'user_id' => auth()->user()->id,'factura_id' => $data['model_id']]);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user