mirror of
https://github.com/Sonarr/Sonarr
synced 2025-01-03 05:35:29 +00:00
Fixed: Refresh backup list on deletion
This commit is contained in:
parent
cb7489ce8f
commit
3b00112447
1 changed files with 3 additions and 1 deletions
|
@ -50,7 +50,7 @@ namespace Sonarr.Api.V3.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 Sonarr.Api.V3.System.Backup
|
||||||
}
|
}
|
||||||
|
|
||||||
_diskProvider.DeleteFile(path);
|
_diskProvider.DeleteFile(path);
|
||||||
|
|
||||||
|
return new { };
|
||||||
}
|
}
|
||||||
|
|
||||||
[HttpPost("restore/{id:int}")]
|
[HttpPost("restore/{id:int}")]
|
||||||
|
|
Loading…
Reference in a new issue