Skip to content

Commit 149420d

Browse files
committed
Do not index search when updating identicon
1 parent 90caefd commit 149420d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/Jobs/UpdateUserIdenticonStatus.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ public function handle(GithubUserApi $github): void
2020
{
2121
$hasIdenticon = $github->hasIdenticon($this->user->githubId());
2222

23-
$this->user->update(['github_has_identicon' => $hasIdenticon]);
23+
User::withoutSyncingToSearch(function () use ($hasIdenticon) {
24+
$this->user->update(['github_has_identicon' => $hasIdenticon]);
25+
});
2426
}
2527
}

0 commit comments

Comments
 (0)