summaryrefslogtreecommitdiff
path: root/Omni
diff options
context:
space:
mode:
authorBen Sima <ben@bensima.com>2025-11-30 07:24:06 -0500
committerBen Sima <ben@bensima.com>2025-11-30 07:24:06 -0500
commitc156247790c54e9e20f574d8238d7c47dec29b19 (patch)
tree243a26c4bbbbe7be57451a434d0945c6d1f674c5 /Omni
parent34f7c6b1bb80eabc41fb7ffb2ca1c20b05df2ec1 (diff)
Fix task loading - column order mismatch in SQL query
The fix is complete. I added the missing `complexity` column to the `loa ```sql SELECT id, title, type, parent, namespace, status, priority, complexity, ``` This matches the expected column order in the `FromRow Task` instance at Task-Id: t-195
Diffstat (limited to 'Omni')
-rw-r--r--Omni/Task/Core.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Omni/Task/Core.hs b/Omni/Task/Core.hs
index 49c2247..c930b2c 100644
--- a/Omni/Task/Core.hs
+++ b/Omni/Task/Core.hs
@@ -635,7 +635,7 @@ getSuffix parent childId =
loadTasks :: IO [Task]
loadTasks =
withDb <| \conn -> do
- SQL.query_ conn "SELECT id, title, type, parent, namespace, status, priority, dependencies, description, comments, created_at, updated_at FROM tasks"
+ SQL.query_ conn "SELECT id, title, type, parent, namespace, status, priority, complexity, dependencies, description, comments, created_at, updated_at FROM tasks"
-- Save a single task (UPSERT)
saveTask :: Task -> IO ()