fix naming of util-crontab-schedule_task

This commit is contained in:
Haiping Chen 2024-12-05 18:09:33 -06:00
parent c24b6683f4
commit ddbed01cda
2 changed files with 2 additions and 2 deletions

View file

@ -60,7 +60,7 @@ public class CrontabService : ICrontabService
{
var convService = _services.GetRequiredService<IConversationService>();
var conv = await convService.GetConversation("73a9ee27-d597-4739-958f-3bd79760ac8e");
if (!conv.States.ContainsKey("cron_expression"))
if (conv == null || !conv.States.ContainsKey("cron_expression"))
{
return [];
}

View file

@ -1,5 +1,5 @@
{
"name": "schedule_task",
"name": "util-crontab-schedule_task",
"description": "Set up a scheduled task",
"parameters": {
"type": "object",