Fixed: Bookshelf not updating after adjusting monitored options

This commit is contained in:
ta264 2021-09-02 21:12:13 +01:00
parent 0e5f45a457
commit 9d78e5bfd8

View file

@ -18,7 +18,7 @@ public BookshelfController(IAuthorService authorService, IBookMonitoredService b
}
[HttpPost]
public IActionResult UpdateAll([FromBody] BookshelfResource request)
public ActionResult<object> UpdateAll([FromBody] BookshelfResource request)
{
//Read from request
var authorToUpdate = _authorService.GetAuthors(request.Authors.Select(s => s.Id));
@ -40,7 +40,7 @@ public IActionResult UpdateAll([FromBody] BookshelfResource request)
_bookMonitoredService.SetBookMonitoredStatus(author, request.MonitoringOptions);
}
return Accepted();
return Accepted(new object());
}
}
}