mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
add client to chat
This commit is contained in:
@ -15,7 +15,10 @@ class ChatDeparmentUserModel extends Model
|
||||
protected $protectFields = true;
|
||||
protected $allowedFields = [
|
||||
"chat_department_id",
|
||||
"user_id"
|
||||
"user_id",
|
||||
"pedido_id",
|
||||
"factura_id",
|
||||
"presupuesto_id"
|
||||
];
|
||||
|
||||
protected bool $allowEmptyInserts = false;
|
||||
@ -47,6 +50,7 @@ class ChatDeparmentUserModel extends Model
|
||||
protected $afterFind = [];
|
||||
protected $beforeDelete = [];
|
||||
protected $afterDelete = [];
|
||||
|
||||
public function getChatDepartmentUser(int $user_id)
|
||||
{
|
||||
return $this->db->table($this->table." t1")
|
||||
@ -55,6 +59,5 @@ class ChatDeparmentUserModel extends Model
|
||||
->where("t1.user_id",$user_id)
|
||||
->where("t1.deleted_at",null)
|
||||
->get()->getResultObject();
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user