Properly dispose dbContext in MigrateUserDb
This commit is contained in:
parent
8aee50020b
commit
c45dd5d6fb
|
@ -67,7 +67,7 @@ namespace Jellyfin.Server.Migrations.Routines
|
||||||
using (var connection = new SqliteConnection($"Filename={Path.Combine(dataPath, DbFilename)}"))
|
using (var connection = new SqliteConnection($"Filename={Path.Combine(dataPath, DbFilename)}"))
|
||||||
{
|
{
|
||||||
connection.Open();
|
connection.Open();
|
||||||
var dbContext = _provider.CreateDbContext();
|
using var dbContext = _provider.CreateDbContext();
|
||||||
|
|
||||||
var queryResult = connection.Query("SELECT * FROM LocalUsersv2");
|
var queryResult = connection.Query("SELECT * FROM LocalUsersv2");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user