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.

fix(shared): remove unused relation from queryDatabaseByUuidWithinTeam function

Andras Bacsai2189c44ba51c
diff --git a/bootstrap/helpers/shared.php b/bootstrap/helpers/shared.php
index 8b2d9fb6a3..7d6d55c5d2 100644
--- a/bootstrap/helpers/shared.php
+++ b/bootstrap/helpers/shared.php
@@ -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) {