fix(core): default null task.description to empty string on persist
The tasks table description column is NOT NULL, so a task arriving with description == null/undefined would fail the insert with a constraint error. Default to "" in getTaskPersistValues, matching the ?? null / ?? 0 treatment of other optional fields. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
5
.changeset/fix-task-persist-null-description.md
Normal file
5
.changeset/fix-task-persist-null-description.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@runfusion/fusion": patch
|
||||
---
|
||||
|
||||
Coerce `task.description` to an empty string when persisting in `TaskStore.getTaskPersistValues`. The `description` column is `NOT NULL`, so a task with a missing description previously failed insertion with a constraint error. Defaulting to `""` mirrors the existing `?? null` / `?? 0` treatment of other optional fields.
|
||||
Reference in New Issue
Block a user