fix(shared): remove unused relation from queryDatabaseByUuidWithinTeam function

This commit is contained in:
Andras Bacsai
2025-05-20 15:08:04 +02:00
parent 587a927b8b
commit 2189c44ba5

View File

@@ -478,7 +478,7 @@ function queryDatabaseByUuidWithinTeam(string $uuid, string $teamId)
{ {
$postgresql = StandalonePostgresql::whereUuid($uuid)->first(); $postgresql = StandalonePostgresql::whereUuid($uuid)->first();
if ($postgresql && $postgresql->team()->id == $teamId) { if ($postgresql && $postgresql->team()->id == $teamId) {
return $postgresql->unsetRelation('environment')->unsetRelation('destination'); return $postgresql->unsetRelation('environment');
} }
$redis = StandaloneRedis::whereUuid($uuid)->first(); $redis = StandaloneRedis::whereUuid($uuid)->first();
if ($redis && $redis->team()->id == $teamId) { if ($redis && $redis->team()->id == $teamId) {