The Free Software Media System - Server Backend & API
Add using statement to DisplayPreferences migration
Patrick Barrona6bc4c688d70
diff --git a/Jellyfin.Server/Migrations/Routines/MigrateDisplayPreferencesDb.cs b/Jellyfin.Server/Migrations/Routines/MigrateDisplayPreferencesDb.csindex 183b1aeabd..780c1488dd 100644--- a/Jellyfin.Server/Migrations/Routines/MigrateDisplayPreferencesDb.cs+++ b/Jellyfin.Server/Migrations/Routines/MigrateDisplayPreferencesDb.cs@@ -67,7 +67,7 @@ namespace Jellyfin.Server.Migrations.Routinesvar dbFilePath = Path.Combine(_paths.DataPath, DbFilename);using (var connection = SQLite3.Open(dbFilePath, ConnectionFlags.ReadOnly, null)){- var dbContext = _provider.CreateContext();+ using var dbContext = _provider.CreateContext();var results = connection.Query("SELECT * FROM userdisplaypreferences");foreach (var result in results)