xiaogang пре 3 година
родитељ
комит
8cc239fd0c
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      app/Services/DynamicService.php

+ 1 - 1
app/Services/DynamicService.php

xqd
@@ -138,7 +138,7 @@ class DynamicService
                 $black_list = UserBlacklistModel::query()->where('user_id',$user->id)->select(['black_id'])->get()->toArray();
                 $ids = array_column($black_list,'black_id');
                 $ids[]= $user->id;
-                $query = $query->where('is_distory',0)->whereNotIn('users.id',$ids);
+                $query->where('is_distory',0)->whereNotIn('users.id',$ids);
             }else{
                 $query->where('is_distory',0)->select();
             }