fix(sync): store completed and completedAt on task create #155

Merged
maximus merged 1 commit from issue-146-task-create-completed into master 2026-10-25 01:21:59 +00:00

1 commit

Author SHA1 Message Date
le king fu
b26f23cebc fix(sync): store completed and completedAt on task create
taskCreateData now accepts completed and completedAt with the same rules
as taskUpdateData, and the task create insert writes them. initialMerge
sends completed without completedAt: a completed task without a date gets
the server time, an open task gets no date (same rule as
PATCH /api/tasks/[id]). Without completed the column default applies.

Route tests cover the five cases on the real handler (PGlite), schema
tests cover the create payloads. REVIEW.md Sync zone records the rule.

Refs #146

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 14:06:27 -04:00