Skip to content

Commit

Permalink
Update FollowServiceWarmCache
Browse files Browse the repository at this point in the history
  • Loading branch information
dansup committed Dec 3, 2023
1 parent 1ef885c commit fe9b4c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Jobs/FollowPipeline/FollowServiceWarmCache.php
Expand Up @@ -73,7 +73,7 @@ public function handle()
if(Follower::whereProfileId($id)->orWhere('following_id', $id)->count()) {
$following = [];
$followers = [];
foreach(Follower::lazy() as $follow) {
foreach(Follower::where('following_id', $id)->orWhere('profile_id', $id)->lazyById(500) as $follow) {
if($follow->following_id != $id && $follow->profile_id != $id) {
continue;
}
Expand Down

0 comments on commit fe9b4c5

Please sign in to comment.