From 57c5573b11d7b5cac73878b320922c0df3c0b10d Mon Sep 17 00:00:00 2001 From: Jicheng Lu <103353@smsassist.com> Date: Sun, 15 Oct 2023 23:21:40 -0500 Subject: [PATCH] minor change in FunctionDefMongoElement --- .../Models/FunctionDefMongoElement.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Plugins/BotSharp.Plugin.MongoStorage/Models/FunctionDefMongoElement.cs b/src/Plugins/BotSharp.Plugin.MongoStorage/Models/FunctionDefMongoElement.cs index d9943577..ec9699c0 100644 --- a/src/Plugins/BotSharp.Plugin.MongoStorage/Models/FunctionDefMongoElement.cs +++ b/src/Plugins/BotSharp.Plugin.MongoStorage/Models/FunctionDefMongoElement.cs @@ -38,7 +38,7 @@ public class FunctionDefMongoElement Parameters = new FunctionParametersDef { Type = mongoFunction.Parameters.Type, - Properties = JsonSerializer.Deserialize(mongoFunction.Parameters.Properties), + Properties = JsonSerializer.Deserialize(mongoFunction.Parameters.Properties.IfNullOrEmptyAs("{}")), Required = mongoFunction.Parameters.Required, } };