From 51b9744e25856b15fc0fe20c975d8a0c2a9f6504 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Wed, 11 Dec 2024 14:36:38 +0200 Subject: [PATCH] Fixed: Refresh backup list on deletion (cherry picked from commit 3b00112447361b19c04851a510e63f812597a043) --- src/Readarr.Api.V1/System/Backup/BackupController.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Readarr.Api.V1/System/Backup/BackupController.cs b/src/Readarr.Api.V1/System/Backup/BackupController.cs index 0872bcbf1..405297d53 100644 --- a/src/Readarr.Api.V1/System/Backup/BackupController.cs +++ b/src/Readarr.Api.V1/System/Backup/BackupController.cs @@ -50,7 +50,7 @@ namespace Readarr.Api.V1.System.Backup } [RestDeleteById] - public void DeleteBackup(int id) + public object DeleteBackup(int id) { var backup = GetBackup(id); @@ -67,6 +67,8 @@ namespace Readarr.Api.V1.System.Backup } _diskProvider.DeleteFile(path); + + return new { }; } [HttpPost("restore/{id:int}")]