mirror of
https://github.com/Radarr/Radarr
synced 2024-12-27 02:09:59 +00:00
Fix namespace for StringConverter
This commit is contained in:
parent
0ef9d28a73
commit
547c044dc6
2 changed files with 19 additions and 15 deletions
|
@ -2,8 +2,10 @@
|
|||
using System.Text.Json;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
public class StringConverter : JsonConverter<string>
|
||||
namespace NzbDrone.Core.Datastore.Converters
|
||||
{
|
||||
public class StringConverter : JsonConverter<string>
|
||||
{
|
||||
public override string Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
|
||||
{
|
||||
if (reader.TokenType == JsonTokenType.Number)
|
||||
|
@ -23,4 +25,5 @@ public override void Write(Utf8JsonWriter writer, string value, JsonSerializerOp
|
|||
{
|
||||
writer.WriteStringValue(value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
using Dapper;
|
||||
using FluentMigrator;
|
||||
using NzbDrone.Common.Extensions;
|
||||
using NzbDrone.Core.Datastore.Converters;
|
||||
using NzbDrone.Core.Datastore.Migration.Framework;
|
||||
|
||||
namespace NzbDrone.Core.Datastore.Migration
|
||||
|
|
Loading…
Reference in a new issue