Push down db error returning
This commit is contained in:
parent
ce995cdc33
commit
2d69d4b26d
11 changed files with 172 additions and 129 deletions
|
|
@ -65,13 +65,11 @@ pub async fn get_unseen_documents(
|
|||
.database
|
||||
.get_latest_documents_since(vault_id, update_id, Some(up_to_vault_update_id), None)
|
||||
.await
|
||||
.map_err(server_error)
|
||||
} else {
|
||||
state
|
||||
.database
|
||||
.get_latest_documents(vault_id, Some(up_to_vault_update_id), None)
|
||||
.await
|
||||
.map_err(server_error)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue