AcadeDoc/apps
Corentin 8c3d55024b fix(acadenice): use camelCase row keys in sync-block repo — Patch 027
The DatabaseModule registers a global CamelCasePlugin which converts
every column name (including SELECT aliases) from snake_case to
camelCase at runtime. The sync-block repo declared sql<{...}> result
types in snake_case (workspace_id, created_at, etc.) and accessed those
keys in mapRow / findUsages. At runtime kysely returned camelCase keys
so every property read was undefined, causing 'Invalid time value' on
new Date(undefined).toISOString().

Same pattern is likely present in graph.service.ts and backlinks
services — Patch 028 will sweep those.

Verified via curl: POST /api/acadenice/sync-blocks now returns 201 with
the full DTO.

Patch 027.
2026-05-08 12:53:29 +02:00
..
client fix(client): switch bridge token to import.meta.env (Vite auto-expose) — Patch 025 2026-05-08 12:44:18 +02:00
extension-clipper feat(acadenice): add sync blocks for cross-page content sharing — R4.2 2026-05-08 11:40:12 +02:00
server fix(acadenice): use camelCase row keys in sync-block repo — Patch 027 2026-05-08 12:53:29 +02:00