BUG: mark_conv_read 500 — comm_message_reads UniqueViolation bei erneutem Als-gelesen-Markieren #352

Open
opened 2026-08-27 10:07:33 +00:00 by Leopoldadmin · 0 comments
Owner

Live gemessen 2026-08-27 09:40/09:44 in Produktion (Container-Log): POST /api/v1/comm/conversations/{id}/read → 500. app/plugins/builtins/kommunikation/interactions.py mark_read() INSERT verletzt comm_message_reads_conversation_id_user_id_key, wenn bereits eine Read-Row existiert. Fix-Ansatz: Upsert (ON CONFLICT DO UPDATE) oder SELECT-then-update statt blindem INSERT.

Live gemessen 2026-08-27 09:40/09:44 in Produktion (Container-Log): `POST /api/v1/comm/conversations/{id}/read` → 500. `app/plugins/builtins/kommunikation/interactions.py mark_read()` INSERT verletzt `comm_message_reads_conversation_id_user_id_key`, wenn bereits eine Read-Row existiert. Fix-Ansatz: Upsert (`ON CONFLICT DO UPDATE`) oder SELECT-then-update statt blindem INSERT.
Leopoldadmin added the bugmedium labels 2026-08-27 10:07:33 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Leopoldadmin/leocrm#352