mirror of
https://github.com/bitbaum/evig.git
synced 2026-12-04 19:37:46 +01:00
CRITICAL prod bug found via E2E: submitting an offer on a repair request always 500'd. The trigger function update_peer_repair_offer_count() (fires on every it_hilfe_offers INSERT/DELETE) still referenced peer_repair_requests — the table was renamed to it_hilfe_requests but the function wasn't updated, so every offer insert failed with "relation peer_repair_requests does not exist". The entire "offer help on a repair request" flow was unusable. Migration 090 repoints the function at it_hilfe_requests (applied to prod). Verified end-to-end: request → offer → accept (conversation created) → complete → review (helper-rating update now runs cleanly via the earlier helper_id fix). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>