Fixed: Refresh backup list on deletion

Fixes #2300
This commit is contained in:
Bogdan
2024-12-11 14:36:38 +02:00
parent d29ccd7749
commit 31d8d2419a

View File

@@ -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}")]