mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 18:57:39 -07:00
Added support for embedding lists of IEmbeddedDocument types.
This commit is contained in:
parent
b16d85d0fc
commit
57120c9eeb
4 changed files with 75 additions and 6 deletions
|
@ -28,11 +28,6 @@ namespace NzbDrone.Core.Datastore.Converters
|
|||
{
|
||||
if (clrValue == null) return null;
|
||||
|
||||
if (clrValue as IEmbeddedDocument == null)
|
||||
{
|
||||
throw new InvalidOperationException("Attempted to embedded an object not marked with IEmbeddedDocument");
|
||||
}
|
||||
|
||||
var json = JsonConvert.SerializeObject(clrValue);
|
||||
return json;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue