Make API more intuitive
This commit is contained in:
parent
d069939c6b
commit
f87352a9e6
1 changed files with 2 additions and 2 deletions
|
|
@ -70,7 +70,7 @@ impl Database {
|
|||
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(
|
||||
&self,
|
||||
vault: &VaultId,
|
||||
|
|
@ -88,7 +88,7 @@ impl Database {
|
|||
updated_date as "updated_date: chrono::DateTime<Utc>",
|
||||
is_deleted
|
||||
from latest_document_versions
|
||||
where is_deleted = false and vault_id = ?
|
||||
where vault_id = ?
|
||||
order by vault_update_id desc
|
||||
"#,
|
||||
vault,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue