fix store message

This commit is contained in:
amazuecos
2025-03-17 23:16:11 +01:00
parent 4ef91da9b3
commit d417db18e2
2 changed files with 8 additions and 6 deletions

View File

@ -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']]);
}
}

View File

@ -92,7 +92,7 @@ export const alertSuccess = (value, target = 'body',options = {}) => {
iconColor: 'white',
target: target,
showConfirmButton: false,
timer: 2000,
timer: 6000,
timerProgressBar: true,
...options,
})
@ -109,7 +109,7 @@ export const alertError = (value, target = 'body',options = {}) => {
iconColor: 'white',
target: target,
showConfirmButton: false,
timer: 2000,
timer: 6000,
timerProgressBar: true,
...options
})
@ -126,7 +126,7 @@ export const alertWarning = (value, target = 'body',options = {}) => {
iconColor: 'white',
target: target,
showConfirmButton: false,
timer: 2000,
timer: 6000,
timerProgressBar: true,
...options
})