mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
message Service added
This commit is contained in:
@ -36,7 +36,8 @@ class MessageService extends BaseService
|
||||
}
|
||||
public function createErrorMessagePresupuesto(string $error, int $presupuesto_id)
|
||||
{
|
||||
$chat_department_name = $this->configVariables->getVariable('send_error_to_chat_department_name');
|
||||
$dataResponse = null;
|
||||
$chat_department_name = $this->configVariables->getVariable('send_error_to_chat_department_name')?->value;
|
||||
$chat_department_id = $this->chatDepartmentModel->where('name', $chat_department_name)->first()?->id;
|
||||
if ($chat_department_id) {
|
||||
$existChat = $this->chatModel->existChatPresupuesto($chat_department_id, $presupuesto_id);
|
||||
@ -55,5 +56,7 @@ class MessageService extends BaseService
|
||||
}
|
||||
}
|
||||
}
|
||||
return $dataResponse;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user