Skip to content

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.

refactor(cache): update team retrieval method in ClearsGlobalSearchCache trait

Andras Bacsai8d5f9ed0f631
diff --git a/app/Traits/ClearsGlobalSearchCache.php b/app/Traits/ClearsGlobalSearchCache.php
index 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.team
if (method_exists($this, 'team')) {
- $team = $this->team();
+ $team = $this->team;
if (filled($team)) {
return is_object($team) ? $team->id : null;
}