update dependencies; code cleanup (#1357)
* update dependencies * code cleanup
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user