fix(shared): remove unused relation from queryDatabaseByUuidWithinTeam function
This commit is contained in:
parent
587a927b8b
commit
2189c44ba5
1 changed files with 1 additions and 1 deletions
|
|
@ -478,7 +478,7 @@ function queryDatabaseByUuidWithinTeam(string $uuid, string $teamId)
|
|||
{
|
||||
$postgresql = StandalonePostgresql::whereUuid($uuid)->first();
|
||||
if ($postgresql && $postgresql->team()->id == $teamId) {
|
||||
return $postgresql->unsetRelation('environment')->unsetRelation('destination');
|
||||
return $postgresql->unsetRelation('environment');
|
||||
}
|
||||
$redis = StandaloneRedis::whereUuid($uuid)->first();
|
||||
if ($redis && $redis->team()->id == $teamId) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue