return not found if no records.
This commit is contained in:
parent
0e2a457d86
commit
8c460d54b2
|
|
@ -29,7 +29,15 @@ public class ExecuteQueryFn : IFunctionCallback
|
|||
_ => throw new NotImplementedException($"Database type {settings.DatabaseType} is not supported.")
|
||||
};
|
||||
|
||||
message.Content = JsonSerializer.Serialize(results);
|
||||
if (results.Count() == 0)
|
||||
{
|
||||
message.Content = "No record found";
|
||||
}
|
||||
else
|
||||
{
|
||||
message.Content = JsonSerializer.Serialize(results);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue