Every refresh*Token method inside ConnectionVerifier already finishes with \$account->update(...) (mutates the model) + \$account->refresh() (reloads from DB to pick up sibling updates like LinkedInTokenSynchronizer). The lock-contention branch in refreshToken() also calls \$account->refresh() before returning. So a second \$account->refresh() in the caller was always a redundant SELECT — no scenario where it actually pulled a different value than what CV already left in memory. Removed from all 15 call sites, plus fixed the duplicated "Mastodon tokens don't expire" comment. |
||
|---|---|---|
| .. | ||
| Ai | ||
| Brand | ||
| Image | ||
| Media | ||
| Post | ||
| PostTemplate | ||
| Social | ||
| GiphyService.php | ||
| PostHogService.php | ||
| UnsplashService.php | ||