Merge pull request #11677 from Bond-009/migrateuserdb

Properly dispose dbContext in MigrateUserDb
This commit is contained in:
Niels van Velzen 2024-05-16 19:02:52 +02:00 committed by GitHub
commit 9b98638b2b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -67,7 +67,7 @@ namespace Jellyfin.Server.Migrations.Routines
using (var connection = new SqliteConnection($"Filename={Path.Combine(dataPath, DbFilename)}"))
{
connection.Open();
var dbContext = _provider.CreateDbContext();
using var dbContext = _provider.CreateDbContext();
var queryResult = connection.Query("SELECT * FROM LocalUsersv2");