fix(schema): project persisted todos

This commit is contained in:
Kit Langton
2026-06-24 23:22:46 -04:00
parent 61aaa250c4
commit 4e980858ea
+5 -1
View File
@@ -63,7 +63,11 @@ export const layer = Layer.effect(
.orderBy(asc(TodoTable.position))
.all()
.pipe(Effect.orDie)
return rows
return rows.map((row) => ({
content: row.content,
status: row.status,
priority: row.priority,
}))
})
return Service.of({ update, get })