mirror of
https://github.com/laurent22/joplin.git
synced 2026-02-13 02:29:35 -06:00
In theory, the server enforces uniquness because when doing a PUT operation it either creates the items if it doesn't exist, or overwrite it. However, there's race condition that makes it possible for multiple items with the same name being created per user. So we add this constraint to ensure that any additional query would fail (which can be recovered by repeating the request).