Updated state to scan library first before looking for stale media to ensure data in table is accurate
This commit is contained in:
@@ -32,7 +32,11 @@ public class StateController(MediaCleanerState state) : Controller
|
||||
public IActionResult GetMovieInfo() => Ok(_state.GetMovieInfo());
|
||||
|
||||
[HttpGet("updateState")]
|
||||
public IActionResult GetUpdateState() => Ok(_state.UpdateState());
|
||||
public async Task<IActionResult> GetUpdateState()
|
||||
{
|
||||
await _state.UpdateState().ConfigureAwait(false);
|
||||
return Ok();
|
||||
}
|
||||
|
||||
[HttpGet("getMoviesTitle")]
|
||||
public IActionResult GetMoviesTitle() =>
|
||||
|
||||
Reference in New Issue
Block a user