mirror of
https://github.com/R0m1k3/noteflow.git
synced 2026-10-11 17:29:37 +02:00
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.