From 7fb6fd73552cd091600e49d8352c60fff48f37aa Mon Sep 17 00:00:00 2001 From: "brobert (aider)" Date: Sun, 23 Mar 2025 23:31:19 +0100 Subject: [PATCH] fix: Make handleTaskCommand async to support await usage --- src/bot/commands/task.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bot/commands/task.ts b/src/bot/commands/task.ts index 7b5c898..99abe20 100644 --- a/src/bot/commands/task.ts +++ b/src/bot/commands/task.ts @@ -14,7 +14,7 @@ function formatTaskList(tasks: any[]) { }).join('\n'); } -export function handleTaskCommand(body: string, sender: string, groupId: string, linkedGroups: Set) { +export async function handleTaskCommand(body: string, sender: string, groupId: string, linkedGroups: Set) { if (groupId && linkedGroups.has(groupId)) { if (body.startsWith('/tarea')) { const command = body.replace('/tarea', '').trim();