From 31d8d2419ae9671aba7b5c8a1a2ea1e0a768e63a 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 Fixes #2300 --- src/Prowlarr.Api.V1/System/Backup/BackupController.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Prowlarr.Api.V1/System/Backup/BackupController.cs b/src/Prowlarr.Api.V1/System/Backup/BackupController.cs index 927026805..b2c7261b7 100644 --- a/src/Prowlarr.Api.V1/System/Backup/BackupController.cs +++ b/src/Prowlarr.Api.V1/System/Backup/BackupController.cs @@ -51,7 +51,7 @@ namespace Prowlarr.Api.V1.System.Backup } [RestDeleteById] - public void DeleteBackup(int id) + public object DeleteBackup(int id) { var backup = GetBackup(id); @@ -68,6 +68,8 @@ namespace Prowlarr.Api.V1.System.Backup } _diskProvider.DeleteFile(path); + + return new { }; } [HttpPost("restore/{id:int}")]