Fix file creation deduplication
This commit is contained in:
parent
0a2a9ead1d
commit
5edd6430dc
1 changed files with 1 additions and 1 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue