Updated state to scan library first before looking for stale media to ensure data in table is accurate

This commit is contained in:
2026-03-10 07:43:53 -06:00
parent a10769779a
commit 1de8e31468
4 changed files with 21 additions and 5 deletions

View File

@@ -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() =>