Bug Description
The ticktick tasks update command fails with a JavaScript error when trying to update a task.
Error Message
Error: Cannot read properties of undefined (reading 'id')
Steps to Reproduce
- Authenticate successfully with
ticktick auth login
- Create a task:
ticktick tasks create PROJECT_ID "Test task" --due 2026-02-06
- Try to update the task:
ticktick tasks update TASK_ID --due 2026-02-07
- Error occurs
Expected Behavior
Task should be updated with the new due date.
Actual Behavior
Command fails with "Cannot read properties of undefined (reading 'id')"
Environment
- Node.js version: v24.13.0
- ticktick-cli version: 1.0.0
- OS: Ubuntu (Linux)
Additional Context
Other commands work fine:
ticktick tasks get PROJECT_ID TASK_ID ✓
ticktick tasks create ✓
ticktick tasks complete PROJECT_ID TASK_ID ✓
ticktick tasks list PROJECT_ID ✓
Only update is broken.
Bug Description
The
ticktick tasks updatecommand fails with a JavaScript error when trying to update a task.Error Message
Steps to Reproduce
ticktick auth loginticktick tasks create PROJECT_ID "Test task" --due 2026-02-06ticktick tasks update TASK_ID --due 2026-02-07Expected Behavior
Task should be updated with the new due date.
Actual Behavior
Command fails with "Cannot read properties of undefined (reading 'id')"
Environment
Additional Context
Other commands work fine:
ticktick tasks get PROJECT_ID TASK_ID✓ticktick tasks create✓ticktick tasks complete PROJECT_ID TASK_ID✓ticktick tasks list PROJECT_ID✓Only
updateis broken.