feat: mensajes directos cliente

This commit is contained in:
amazuecos
2024-11-12 18:26:22 +01:00
parent cc9eba99fb
commit b97e027920
9 changed files with 200 additions and 11768 deletions

View File

@ -82,9 +82,9 @@ class ChatDeparmentModel extends Model
"left"
)
->where("chat_departments.type", $type);
if (auth()->user()->cliente_id == null) {
$query->where("chat_department_users.user_id", auth()->user()->id);
}
// if (auth()->user()->cliente_id == null) {
// $query->where("chat_department_users.user_id", auth()->user()->id);
// }
$results = $query->get()->getResultArray();
// Create the desired structure