From 5aba4a010e7b936f84618e30cc1b863b81d22918 Mon Sep 17 00:00:00 2001 From: Mahmoud Abdel Wakil Date: Wed, 27 Mar 2024 10:42:29 +0200 Subject: [PATCH] fix: Remove incorrect authSource param from MONGODB_URL env variable --- envs/envs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/envs/envs.go b/envs/envs.go index b8832353..c282ab18 100644 --- a/envs/envs.go +++ b/envs/envs.go @@ -239,7 +239,7 @@ func extractRelationshipsEnvs(env Environment) Envs { if !isMaster(endpoint) { continue } - values[fmt.Sprintf("%sURL", prefix)] = fmt.Sprintf("%s://%s:%s@%s:%s/?authSource=%s", endpoint["scheme"].(string), endpoint["username"].(string), endpoint["password"].(string), endpoint["host"].(string), formatInt(endpoint["port"]), endpoint["path"].(string)) + values[fmt.Sprintf("%sURL", prefix)] = fmt.Sprintf("%s://%s:%s@%s:%s", endpoint["scheme"].(string), endpoint["username"].(string), endpoint["password"].(string), endpoint["host"].(string), formatInt(endpoint["port"])) values[fmt.Sprintf("%sSERVER", prefix)] = formatServer(endpoint) values[fmt.Sprintf("%sHOST", prefix)] = endpoint["host"].(string) values[fmt.Sprintf("%sPORT", prefix)] = formatInt(endpoint["port"])