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
refactor(cache): update team retrieval method in ClearsGlobalSearchCache trait
Andras Bacsai8d5f9ed0f631
diff --git a/app/Traits/ClearsGlobalSearchCache.php b/app/Traits/ClearsGlobalSearchCache.phpindex 0bcc5d3197..d1cd2c5f57 100644--- a/app/Traits/ClearsGlobalSearchCache.php+++ b/app/Traits/ClearsGlobalSearchCache.php@@ -65,7 +65,7 @@ trait ClearsGlobalSearchCache{// For database models, team is accessed through environment.project.teamif (method_exists($this, 'team')) {- $team = $this->team();+ $team = $this->team;if (filled($team)) {return is_object($team) ? $team->id : null;}