Make API more intuitive

This commit is contained in:
Andras Schmelczer 2025-01-04 17:37:28 +00:00
commit f87352a9e6
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C

View file

@ -70,7 +70,7 @@ impl Database {
Ok(transaction) Ok(transaction)
} }
/// Return the latest state of all non-deleted documents in the vault /// Return the latest state of all documents in the vault
pub async fn get_latest_documents( pub async fn get_latest_documents(
&self, &self,
vault: &VaultId, vault: &VaultId,
@ -88,7 +88,7 @@ impl Database {
updated_date as "updated_date: chrono::DateTime<Utc>", updated_date as "updated_date: chrono::DateTime<Utc>",
is_deleted is_deleted
from latest_document_versions from latest_document_versions
where is_deleted = false and vault_id = ? where vault_id = ?
order by vault_update_id desc order by vault_update_id desc
"#, "#,
vault, vault,