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

pull/21680/head
Peter Buga 2025-09-08 17:29:34 +07:00 committed by GitHub
parent 27751f8fd4
commit 255dabc239
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

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