mirror of
https://github.com/eyaltoledano/claude-task-master.git
synced 2026-01-30 06:12:05 +00:00
feat: add tm tags command to remote (#1386)
Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -130,8 +130,10 @@ async function updateTaskById(
|
||||
}
|
||||
const numericTaskId = Number(idStr);
|
||||
const taskIndex = data.tasks.findIndex((task) => task.id === numericTaskId);
|
||||
if (taskIndex === -1)
|
||||
if (taskIndex === -1) {
|
||||
report('error', `Task with ID ${numericTaskId} not found`);
|
||||
throw new Error(`Task with ID ${numericTaskId} not found.`);
|
||||
}
|
||||
const taskToUpdate = data.tasks[taskIndex];
|
||||
if (taskToUpdate.status === 'done' || taskToUpdate.status === 'completed') {
|
||||
report(
|
||||
|
||||
Reference in New Issue
Block a user