refactor(cache): update team retrieval method in ClearsGlobalSearchCache trait
This commit is contained in:
parent
69c36e6333
commit
8d5f9ed0f6
1 changed files with 1 additions and 1 deletions
|
|
@ -65,7 +65,7 @@ private function getTeamIdForCache()
|
||||||
{
|
{
|
||||||
// For database models, team is accessed through environment.project.team
|
// For database models, team is accessed through environment.project.team
|
||||||
if (method_exists($this, 'team')) {
|
if (method_exists($this, 'team')) {
|
||||||
$team = $this->team();
|
$team = $this->team;
|
||||||
if (filled($team)) {
|
if (filled($team)) {
|
||||||
return is_object($team) ? $team->id : null;
|
return is_object($team) ? $team->id : null;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue