1
0
mirror of synced 2024-11-14 06:29:17 +00:00

Keep arguments as string instead of bytes

This commit is contained in:
Mark van Renswoude 2023-03-30 13:58:44 +02:00
parent 1b9bac41a6
commit 3c7dc09bff

View File

@ -326,7 +326,7 @@ namespace Tapeti.Connection
{
JTokenType.Integer => pair.Value.Value<int>(),
JTokenType.Float => pair.Value.Value<double>(),
JTokenType.String => Encoding.UTF8.GetBytes(pair.Value.Value<string>() ?? string.Empty),
JTokenType.String => pair.Value.Value<string>() ?? string.Empty,
JTokenType.Boolean => pair.Value.Value<bool>(),
_ => throw new ArgumentOutOfRangeException(nameof(arguments))
};