From 7196b27502bac4d383c9e2121d0d4e6f1e95f9c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Zieli=C5=84ski?= Date: Fri, 1 Sep 2023 18:39:13 +0200 Subject: [PATCH] Backup fix --- WebAPI/Controllers/AdminController.cs | 2 +- WebAPI/appsettings.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/WebAPI/Controllers/AdminController.cs b/WebAPI/Controllers/AdminController.cs index 41ce1f6..894422a 100644 --- a/WebAPI/Controllers/AdminController.cs +++ b/WebAPI/Controllers/AdminController.cs @@ -71,7 +71,7 @@ namespace WebAPI.Controllers command.Parameters.AddWithValue("@formatMediaName", formatMediaName); command.Parameters.AddWithValue("@formatName", formatName); - // command.ExecuteNonQuery(); + command.ExecuteNonQuery(); Google.Apis.Drive.v3.Data.File body = new Google.Apis.Drive.v3.Data.File(); body.Name = Path.GetFileName(localDatabasePath); diff --git a/WebAPI/appsettings.json b/WebAPI/appsettings.json index 9c18f0f..6deea34 100644 --- a/WebAPI/appsettings.json +++ b/WebAPI/appsettings.json @@ -16,8 +16,8 @@ "exportDirectory": "#{export-directory}#", "appLogsFile": "#{app-logs-file}#", "apiLocalUrl": "#{api-local-url}#", - "dbBackupFile": "#{db-backup-file}", - "GDriveBackupDirectory": "#{gdrive-backup-directory}", + "dbBackupFile": "#{db-backup-file}#", + "GDriveBackupDirectory": "#{gdrive-backup-directory}#", "Kestrel": { "Endpoints": { "Http": {