Files
evig/scripts/db
Mao NakamotoandClaude Opus 4.8 1baa623610 fix(it-hilfe): repair offer-count trigger that broke ALL offer submissions (migration 090)
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>
2026-06-18 09:43:17 +02:00
..