The Free Software Media System - Server Backend & API
Use ToByteArray instead of ToGuidBlob.
Andrew Mahone4573fb5301b0
diff --git a/Emby.Server.Implementations/Data/SqliteItemRepository.cs b/Emby.Server.Implementations/Data/SqliteItemRepository.csindex 08f53f0f5d..2b07844e71 100644--- a/Emby.Server.Implementations/Data/SqliteItemRepository.cs+++ b/Emby.Server.Implementations/Data/SqliteItemRepository.cs@@ -6175,7 +6175,7 @@ where AncestorIdText not null and ItemValues.Value not null and ItemValues.Typeusing (var statement = PrepareStatement(connection, cmdText)){- statement.TryBind("@ItemId", query.ItemId.ToGuidBlob());+ statement.TryBind("@ItemId", query.ItemId.ToByteArray());if (query.Index.HasValue){@@ -6208,7 +6208,7 @@ where AncestorIdText not null and ItemValues.Value not null and ItemValues.Type{connection.RunInTransaction(db =>{- var itemIdBlob = id.ToGuidBlob();+ var itemIdBlob = id.ToByteArray();db.Execute("delete from mediaattachments where ItemId=@ItemId", itemIdBlob);