|
@@ -53,7 +53,7 @@ class DocterChatController extends AdminController
|
|
|
|
|
|
if (empty($docter_id)) {
|
|
if (empty($docter_id)) {
|
|
$docter_ids = DocterOrganization::where('organization_id', $org_id)->pluck('docter_id')->toArray();
|
|
$docter_ids = DocterOrganization::where('organization_id', $org_id)->pluck('docter_id')->toArray();
|
|
- $grid->model()->where($where)->whereIn('id', $docter_ids);
|
|
|
|
|
|
+ $grid->model()->where($where)->whereIn('docter_id', $docter_ids);
|
|
}
|
|
}
|
|
else {
|
|
else {
|
|
$grid->model()->where($where);
|
|
$grid->model()->where($where);
|