fix util-crontab name

This commit is contained in:
Haiping Chen 2024-12-06 09:49:34 -06:00
parent cbf81345c1
commit 6d1f1b7554
2 changed files with 3 additions and 2 deletions

View file

@ -1,11 +1,12 @@
using BotSharp.Abstraction.Routing;
using BotSharp.Abstraction.Users;
using BotSharp.Core.Crontab.Hooks;
namespace BotSharp.Core.Crontab.Functions;
public class ScheduleTaskFn : IFunctionCallback
{
public string Name => "schedule_task";
public string Name => $"{CrontabUtilityHook.PREFIX}schedule_task";
private readonly IServiceProvider _services;
public ScheduleTaskFn(IServiceProvider services)

View file

@ -5,7 +5,7 @@ namespace BotSharp.Core.Crontab.Hooks;
public class CrontabUtilityHook : IAgentUtilityHook
{
private const string PREFIX = "util-crontab-";
public const string PREFIX = "util-crontab-";
private const string SCHEDULE_TASK_FN = $"{PREFIX}schedule_task";
public void AddUtilities(List<AgentUtility> utilities)