feat(backend): migrate projects route to Drizzle
Replace all supabase-js calls in backend/src/routes/projects.ts with Drizzle ORM equivalents, add projectToWire/docToWire/folderToWire helpers for snake_case wire shape preservation, and wrap every async handler in try/catch. Drop the redundant _db shim arg from all checkProjectAccess call sites. The listAllUsers() usage from P2-1 is preserved intact. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
| Repository | juanjo/mike |
|---|---|
| Author | Juan Vidal <juan.vidal@comgy.io> |
| Authored | |
| Parents | ed0cc463 |
| Stats | 1 file changed , +799 , -499 |
| 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-5e802ac6.md
from inside the repo you want the change in.