P1: service_interest || null causes SQL NULL vs empty string inconsistency #9
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Severity: P1 — High
File: server/index.js ~line 314
Problem: sanitized.service_interest || null converts empty string to null, but a whitespace-only string like " " becomes empty string after trim (not null). Behavior is inconsistent.
Impact: Data inconsistency in database — some records have NULL, some have empty string.
Fix: Use consistent null handling — always convert empty/whitespace-only strings to null.