feat(backend): migrate workflows route to Drizzle

↗ view on GitHub · Juan Vidal · 2026-05-08 · b691f92c

Replace all 18 supabase-js calls in workflows.ts with Drizzle ORM queries.
Add workflowToWire mapper for snake_case wire shape; drop _db shim args;
preserve listAllUsers() from P2-1; wrap all handlers in try/catch.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Repository juanjo/mike
Author Juan Vidal <juan.vidal@comgy.io>
Authored
Parents 3e8d1813
Stats 1 file changed , +328 , -210
Part of Mechanical Drizzle migration of remaining backend routes and lib helpers (Plan 2)

Capture this commit into my fork

Download a Markdown prompt that tells Claude how to port this exact commit into your working tree. Run it via claude -p < capture-commit-b691f92c.md from inside the repo you want the change in.

⬇ Download capture-commit-b691f92c.md