update dependencies; code cleanup (#1357)

* update dependencies

* code cleanup
This commit is contained in:
Jason Dove
2023-08-07 09:34:25 -05:00
committed by GitHub
parent 2ad27c2be0
commit f929dc92d1
69 changed files with 1152 additions and 1145 deletions
@@ -31,7 +31,7 @@ public class CacheCleanerService : BackgroundService
{
return;
}
using IServiceScope scope = _serviceScopeFactory.CreateScope();
await using TvContext dbContext = scope.ServiceProvider.GetRequiredService<TvContext>();
ILocalFileSystem localFileSystem = scope.ServiceProvider.GetRequiredService<ILocalFileSystem>();
@@ -23,7 +23,7 @@ public class DatabaseMigratorService : BackgroundService
protected override async Task ExecuteAsync(CancellationToken cancellationToken)
{
await Task.Yield();
_logger.LogInformation("Applying database migrations");
using IServiceScope scope = _serviceScopeFactory.CreateScope();