refactor(backend): address mail-routes review (ingest error handling, ignore audit)

↗ view on GitHub · SW3xyz · 2026-06-16 · 5d11476b

Wraps ingestDocument in try/catch returning a structured 502, adds email.ignore audit event, documents the pilot-scale TOCTOU limitation on filing.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Repository IZGD/legal-platform
Author SW3xyz <alain@studioweb3.xyz>
Authored
Parents baa9e664
Stats 2 files changed , +28 , -10
Part of Google Workspace backend: OAuth, encrypted tokens, Gmail/Calendar, mail triage

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-5d11476b.md from inside the repo you want the change in.

⬇ Download capture-commit-5d11476b.md