Refactor and small fixes #179

Merged
schmelczer merged 17 commits from asch/refactor into main 2025-12-07 16:42:23 +00:00
Showing only changes of commit 5edd6430dc - Show all commits

Fix file creation deduplication

Andras Schmelczer 2025-12-07 12:44:11 +00:00

View file

@ -319,7 +319,7 @@ impl Database {
device_id,
has_been_merged
from latest_document_versions
where relative_path = ?
where relative_path = ? and is_deleted = false
order by vault_update_id desc -- `latest_document_versions` only contains a single latest version of each document, however,
-- multiple documents can have the same `relative_path`, if they have been deleted. That's
-- why we only care about the latest version of the document with the given relative path.