refactor: replace queries with cached versions for performance improvements

This commit is contained in:
Andras Bacsai committed 2025-12-08 13:39:33 +01:00
1 parent bb83f4e5c3
commit 5e8d11f732
28 files changed
+305 -125

No files matched your search

+1 -1
View File
@@ -196,7 +196,7 @@ class Change extends Component
$github_app_uuid = request()->github_app_uuid;
$this->github_app = GithubApp::ownedByCurrentTeam()->whereUuid($github_app_uuid)->firstOrFail();
$this->github_app->makeVisible(['client_secret', 'webhook_secret']);
$this->privateKeys = PrivateKey::ownedByCurrentTeam()->get();
$this->privateKeys = PrivateKey::ownedByCurrentTeamCached();
$this->applications = $this->github_app->applications;
$settings = instanceSettings();