fix(GRO-643): add appointment indexes to schema and S3 error handling #315

Merged
lint-roller-qa[bot] merged 1 commits from fix/gro-633-db-indexes-constraints into main 2026-04-17 06:42:01 +00:00

1 Commits

Author SHA1 Message Date
Test User 156e1fa4ff fix(GRO-643): add appointment indexes to schema and S3 error handling
- Add idx_appointments_client_id, idx_appointments_staff_id,
  idx_appointments_start_time, idx_appointments_status to schema.
  Migration 0029 already handles the DB side; this brings schema.ts
  in sync so drizzle-kit push is clean going forward.
- Wrap deleteObject calls in try/catch (POST /photo/confirm and
  DELETE /:petId/photo endpoints) so S3 failures don't abort the
  DB update — orphaned objects are logged as warnings instead.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-04-17 05:23:40 +00:00