Files
evo-sync/web
mguschin 5b82f1bc02 fix: upsert evotor_connection by user_id fallback to prevent duplicate insert
When a connection row exists for the user but with a different/null
evotor_user_id, the lookup by evotor_user_id alone missed it and tried
to INSERT, hitting the unique constraint on user_id. Now looks up by
either evotor_user_id or user_id, and always syncs both fields on update.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-24 17:04:33 +03:00
..