From e056911af48c258ee303ff3091f905e29121c8e9 Mon Sep 17 00:00:00 2001 From: imterah Date: Thu, 26 Dec 2024 15:14:26 -0500 Subject: [PATCH] feature: Implements backup code. --- backend/api/backup.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/api/backup.go b/backend/api/backup.go index ebd5f15..ede7b09 100644 --- a/backend/api/backup.go +++ b/backend/api/backup.go @@ -174,7 +174,7 @@ func backupRestoreEntrypoint(cCtx *cli.Context) error { log.Info("Dropping database...") - _, err = db.Query(context.Background(), "DROP DATABASE ?", postgresDB) + _, err = db.Query(context.Background(), "DROP DATABASE $1", postgresDB) if err != nil { return fmt.Errorf("failed to drop database: %s", err.Error())