managarten/apps/api/src
Till JS c404db5b6e fix(website): publish failed with uuid type error on Better-Auth ids
published_by, created_by, and space_id were declared as uuid, but
Mana user + space ids are Better-Auth nanoids stored as text. The
insert into website.published_snapshots raised `invalid input syntax
for type uuid` and Hono swallowed it as a generic 500.

Changes:
- schema.ts: uuid -> text on the three columns
- 0003_fix_id_types.sql: ALTER COLUMN on existing installs
- publish.ts: replace UUID regex on X-Mana-Space with a nanoid-shaped
  check (it was silently nulling valid space ids)
- publish.ts: log + return the actual error message on the 500 path
  so the next unhandled failure is visible instead of opaque

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-23 21:43:57 +02:00
..
lib feat(wardrobe,picture): try-on integration — outfit → OpenAI edit (M4) 2026-04-23 18:52:57 +02:00
mcp feat(mcp): implement remaining 19 tool handlers (27/29 total) 2026-04-16 14:08:57 +02:00
modules fix(website): publish failed with uuid type error on Better-Auth ids 2026-04-23 21:43:57 +02:00
index.ts feat(wardrobe): module foundation — garments + outfits space-scoped data layer (M1) 2026-04-23 18:27:37 +02:00