Fix custom payload format
This commit is contained in:
parent
36a95c8a63
commit
e1b585a578
|
|
@ -128,6 +128,7 @@ namespace BotSharp.Core.Engines
|
|||
return new IntentResponseMessage
|
||||
{
|
||||
Payload = JObject.FromObject(x.Payload),
|
||||
PayloadJson = JsonConvert.SerializeObject(x.Payload),
|
||||
Type = x.Type
|
||||
};
|
||||
} else
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ namespace BotSharp.Core.Engines
|
|||
return (new
|
||||
{
|
||||
x.Type,
|
||||
x.Payload
|
||||
Payload = JsonConvert.DeserializeObject(x.PayloadJson)
|
||||
}) as Object;
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Reference in a new issue