An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
fix(clears-global-search-cache): refine team retrieval logic in getTeamIdForCache method
Andras Bacsai82a8c42d9aab
diff --git a/app/Traits/ClearsGlobalSearchCache.php b/app/Traits/ClearsGlobalSearchCache.phpindex 306e4b2e13..ae587aa87f 100644--- a/app/Traits/ClearsGlobalSearchCache.php+++ b/app/Traits/ClearsGlobalSearchCache.php@@ -66,7 +66,11 @@ trait ClearsGlobalSearchCache{// For database models, team is accessed through environment.project.teamif (method_exists($this, 'team')) {- $team = $this->team;+ if ($this instanceof \App\Models\Server) {+ $team = $this->team;+ } else {+ $team = $this->team();+ }if (filled($team)) {return is_object($team) ? $team->id : null;}