mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
replaced Json.Serialize with ToJson extension method.
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
using System;
|
||||
using Marr.Data.Converters;
|
||||
using Marr.Data.Mapping;
|
||||
using NzbDrone.Common;
|
||||
using NzbDrone.Common.Serializer;
|
||||
|
||||
namespace NzbDrone.Core.Datastore.Converters
|
||||
@@ -23,15 +22,14 @@ namespace NzbDrone.Core.Datastore.Converters
|
||||
return null;
|
||||
}
|
||||
|
||||
return Json.Deserialize(stringValue, map.FieldType);
|
||||
return Json.Deserialize(stringValue, map.FieldType);
|
||||
}
|
||||
|
||||
public object ToDB(object clrValue)
|
||||
{
|
||||
if (clrValue == null) return null;
|
||||
|
||||
var json = Json.Serialize(clrValue);
|
||||
return json;
|
||||
return clrValue.ToJson();
|
||||
}
|
||||
|
||||
public Type DbType
|
||||
|
Reference in New Issue
Block a user