fix: Fixes PostgreSQL database deletion.
All checks were successful
Release code / build (push) Successful in 10m1s

This commit is contained in:
Tera << 8 2024-12-26 18:26:26 -05:00
parent e056911af4
commit 0bc41c430a
Signed by: imterah
GPG key ID: 8FA7DD57BA6CEA37

View file

@ -174,7 +174,7 @@ func backupRestoreEntrypoint(cCtx *cli.Context) error {
log.Info("Dropping database...")
_, err = db.Query(context.Background(), "DROP DATABASE $1", postgresDB)
_, err = db.Query(context.Background(), fmt.Sprintf("DROP DATABASE %s", pgx.Identifier{postgresDB}.Sanitize()))
if err != nil {
return fmt.Errorf("failed to drop database: %s", err.Error())