Fixed an issue where docker users were not properly backing up the database. Removed an empty File for when covers/ had nothing in it. (#692)
This commit is contained in:
parent
9d84bfca5f
commit
6fb01eefa4
3 changed files with 39 additions and 15 deletions
|
@ -71,10 +71,10 @@ namespace API.Controllers
|
|||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpPost("backup-db")]
|
||||
public ActionResult BackupDatabase()
|
||||
public async Task<ActionResult> BackupDatabase()
|
||||
{
|
||||
_logger.LogInformation("{UserName} is backing up database of server from admin dashboard", User.GetUsername());
|
||||
_backupService.BackupDatabase();
|
||||
await _backupService.BackupDatabase();
|
||||
|
||||
return Ok();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue