Files
evig/scripts
g-butandClaude Opus 4.6 5f86a414db fix: resolve critical DB status mismatches in payment workflows
- Add migration 052 to update marketplace_orders CHECK constraint:
  'pending' → 'pending_payment' (matches ORDER_STATUS config)
- Fix Payrexx webhook setting invalid 'paid' status on service
  appointments — use APPOINTMENT_STATUS.CONFIRMED instead
- Fix appointment pay route referencing non-existent 'approved' status
  and setting invalid 'paid' — use APPOINTMENT_STATUS.COMPLETED
- Use APPOINTMENT_STATUS constants instead of PAYMENT_STATUS for
  appointment status updates (type safety)

These mismatches would cause CHECK constraint violations at runtime
when creating marketplace orders or processing payment webhooks.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-01 16:08:12 +02:00
..
2026-01-07 19:57:05 +01:00