fix(server): valid backups with DB_URL env variable config (#21669)

This commit is contained in:
Peter Buga 2025-09-08 17:29:34 +03:00 committed by GitHub
parent 27751f8fd4
commit 255dabc239
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -118,7 +118,7 @@ export class BackupService extends BaseService {
{ {
env: { env: {
PATH: process.env.PATH, PATH: process.env.PATH,
PGPASSWORD: isUrlConnection ? undefined : config.password, PGPASSWORD: isUrlConnection ? new URL(config.url).password : config.password,
}, },
}, },
); );