Fixed: Refresh backup list on deletion

(cherry picked from commit 3b00112447361b19c04851a510e63f812597a043)
pull/4370/merge
Bogdan 1 week ago
parent 502cb20898
commit 4bcdc49777

@ -50,7 +50,7 @@ namespace Lidarr.Api.V1.System.Backup
} }
[RestDeleteById] [RestDeleteById]
public void DeleteBackup(int id) public object DeleteBackup(int id)
{ {
var backup = GetBackup(id); var backup = GetBackup(id);
@ -67,6 +67,8 @@ namespace Lidarr.Api.V1.System.Backup
} }
_diskProvider.DeleteFile(path); _diskProvider.DeleteFile(path);
return new { };
} }
[HttpPost("restore/{id:int}")] [HttpPost("restore/{id:int}")]

Loading…
Cancel
Save