Files
Momento/memento-note/app/actions
sepehr 6e8abc5091
All checks were successful
Deploy to Production / Build and Deploy (push) Successful in 42s
fix: case-sensitive label matching broken on PostgreSQL
syncLabels created Labels with original case (e.g. "Projet") but
searched with .toLowerCase() (e.g. "projet"). On PostgreSQL (case-
sensitive), findMany returned [] → labelRelations disconnected →
orphan cleanup deleted ALL notebook labels.

Fix: use Prisma mode:'insensitive' for findFirst and findMany,
deduplicate case-insensitively while preserving original case.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-27 00:36:03 +02:00
..