mirror of https://github.com/usememos/memos.git
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. |
||
|---|---|---|
| .. | ||
| api/v1 | ||
| frontend | ||
| rss | ||