aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Social/SharingRepository.cs
diff options
context:
space:
mode:
authorLuke <luke.pulverenti@gmail.com>2017-05-08 14:08:21 -0400
committerGitHub <noreply@github.com>2017-05-08 14:08:21 -0400
commitc8c4eb3ab5ff88aa7f756c096b4f896e0dae68f7 (patch)
treedc1178b5e142b6770be17e5e5389fa495e45dd0e /Emby.Server.Implementations/Social/SharingRepository.cs
parent69d17b0e45e7287842b77e12bfd3bd3a683b6a3a (diff)
parentff03a018530c41fb5de4dd6932bd86d062d3f7ae (diff)
Merge pull request #2624 from MediaBrowser/dev
Dev
Diffstat (limited to 'Emby.Server.Implementations/Social/SharingRepository.cs')
-rw-r--r--Emby.Server.Implementations/Social/SharingRepository.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/Emby.Server.Implementations/Social/SharingRepository.cs b/Emby.Server.Implementations/Social/SharingRepository.cs
index e8230947e..46e9205bb 100644
--- a/Emby.Server.Implementations/Social/SharingRepository.cs
+++ b/Emby.Server.Implementations/Social/SharingRepository.cs
@@ -61,7 +61,7 @@ namespace Emby.Server.Implementations.Social
var commandText = "replace into Shares (Id, ItemId, UserId, ExpirationDate) values (?, ?, ?, ?)";
db.Execute(commandText,
- info.Id.ToGuidParamValue(),
+ info.Id.ToGuidBlob(),
info.ItemId,
info.UserId,
info.ExpirationDate.ToDateTimeParamValue());
@@ -84,7 +84,7 @@ namespace Emby.Server.Implementations.Social
var commandText = "select Id, ItemId, UserId, ExpirationDate from Shares where id = ?";
var paramList = new List<object>();
- paramList.Add(id.ToGuidParamValue());
+ paramList.Add(id.ToGuidBlob());
foreach (var row in connection.Query(commandText, paramList.ToArray()))
{
@@ -100,7 +100,7 @@ namespace Emby.Server.Implementations.Social
{
var info = new SocialShareInfo();
- info.Id = reader[0].ReadGuid().ToString("N");
+ info.Id = reader[0].ReadGuidFromBlob().ToString("N");
info.ItemId = reader[1].ToString();
info.UserId = reader[2].ToString();
info.ExpirationDate = reader[3].ReadDateTime();