mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Add using statement to DisplayPreferences migration
This commit is contained in:
parent
995c8fadb7
commit
a6bc4c688d
@ -67,7 +67,7 @@ namespace Jellyfin.Server.Migrations.Routines
|
||||
var 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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user