mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 18:57:39 -07:00
fixed disk scan scheduler.
This commit is contained in:
parent
42849d3276
commit
687f8d9384
23 changed files with 140 additions and 142 deletions
|
@ -8,12 +8,6 @@ namespace NzbDrone.Core.Datastore.Converters
|
|||
{
|
||||
public class EmbeddedDocumentConverter : IConverter
|
||||
{
|
||||
private readonly IJsonSerializer _serializer;
|
||||
|
||||
public EmbeddedDocumentConverter(IJsonSerializer serializer)
|
||||
{
|
||||
_serializer = serializer;
|
||||
}
|
||||
|
||||
public object FromDB(ColumnMap map, object dbValue)
|
||||
{
|
||||
|
@ -29,14 +23,14 @@ namespace NzbDrone.Core.Datastore.Converters
|
|||
return null;
|
||||
}
|
||||
|
||||
return _serializer.Deserialize(stringValue, map.FieldType);
|
||||
return Json.Deserialize(stringValue, map.FieldType);
|
||||
}
|
||||
|
||||
public object ToDB(object clrValue)
|
||||
{
|
||||
if (clrValue == null) return null;
|
||||
|
||||
var json = _serializer.Serialize(clrValue);
|
||||
var json = Json.Serialize(clrValue);
|
||||
return json;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue