Explorar o código

add missing using

cvium hai 1 ano
pai
achega
f2d7842563
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Emby.Server.Implementations/Data/SqliteItemRepository.cs

+ 1 - 1
Emby.Server.Implementations/Data/SqliteItemRepository.cs

@@ -2066,7 +2066,7 @@ namespace Emby.Server.Implementations.Data
                     db =>
                     {
                         // First delete chapters
-                        var command = db.PrepareStatement($"delete from {ChaptersTableName} where ItemId=@ItemId");
+                        using var command = db.PrepareStatement($"delete from {ChaptersTableName} where ItemId=@ItemId");
                         command.TryBind("@ItemId", id);
                         command.ExecuteNonQuery();