fix: Make handleTaskCommand async to support await usage

main
brobert (aider) 3 months ago
parent e6153a1e0f
commit 7fb6fd7355

@ -14,7 +14,7 @@ function formatTaskList(tasks: any[]) {
}).join('\n'); }).join('\n');
} }
export function handleTaskCommand(body: string, sender: string, groupId: string, linkedGroups: Set<string>) { export async function handleTaskCommand(body: string, sender: string, groupId: string, linkedGroups: Set<string>) {
if (groupId && linkedGroups.has(groupId)) { if (groupId && linkedGroups.has(groupId)) {
if (body.startsWith('/tarea')) { if (body.startsWith('/tarea')) {
const command = body.replace('/tarea', '').trim(); const command = body.replace('/tarea', '').trim();

Loading…
Cancel
Save