Adds notes fixes tests

This commit is contained in:
Shannon
2020-12-16 16:52:43 +11:00
parent 78b563c79b
commit c3656d3e58
3 changed files with 19 additions and 1 deletions

View File

@@ -10,7 +10,7 @@ namespace Umbraco.Web.PublishedCache.NuCache.DataSource
{
public ContentCacheDataModel Deserialize(int contentTypeId, string stringData, byte[] byteData)
{
if (byteData != null)
if (stringData == null && byteData != null)
throw new NotSupportedException($"{typeof(JsonContentNestedDataSerializer)} does not support byte[] serialization");
// by default JsonConvert will deserialize our numeric values as Int64