Merge branch 'main' into 'mod/plantillas_cliente'

Main

See merge request jjimenez/safekat!425
This commit is contained in:
2024-12-04 23:13:41 +00:00
5 changed files with 9 additions and 5 deletions

View File

@ -265,7 +265,7 @@ class Users extends \App\Controllers\GoBaseController
foreach ($chatDepartments as $chatDepartment) {
$this->chat_department_user_model->insert([
"user_id" => $id,
"chat_department_id" => $this->chat_department_model->where("name", $chatDepartment)->first()["id"]
"chat_department_id" => $this->chat_department_model->where("name", $chatDepartment)->first()->id
]);
}
$id = $user->id ?? $id;