Files
noteflow/routes
Claude e420364b50 fix: correct SQL bug in todo creation query
Fixed critical SQL type error in todo creation endpoint that prevented todos from being added to notes.

Bug:
- Line 417: Used FALSE (boolean) instead of 0 (integer) in COALESCE function
- SQL: COALESCE(MAX(position), FALSE) + 1
- This caused a type mismatch error when inserting new todos

Fix:
- Changed to: COALESCE(MAX(position), 0) + 1
- Now correctly defaults to 0 when no todos exist for a note

This fix resolves the issue where adding todos would fail silently or throw database errors.
2025-11-27 12:49:07 +00:00
..