memos/server/router/api
Claude 94483ea2a4
refactor(api): remove redundant UID existence check in CreateMemo
The explicit check for existing memo UIDs before insertion is
redundant because:
- Database has UNIQUE constraint on uid column
- The check creates a race condition window
- Database constraint is the actual enforcement mechanism

Simplified the code to rely on the database constraint. If a
duplicate UID is provided, the CreateMemo store call will fail
with a constraint violation error.
2025-11-08 01:27:36 +00:00
..
v1 refactor(api): remove redundant UID existence check in CreateMemo 2025-11-08 01:27:36 +00:00