Simplify API
This commit is contained in:
parent
a783a04cb4
commit
c9ce7fe4db
1 changed files with 18 additions and 13 deletions
|
|
@ -2,7 +2,7 @@ use serde::{self, Deserialize, Serialize};
|
|||
use ts_rs::TS;
|
||||
|
||||
use crate::app_state::database::models::{
|
||||
DocumentVersion, DocumentVersionWithoutContent, FileManifest, VaultUpdateId,
|
||||
DocumentVersionWithoutContent, FileManifest, VaultUpdateId,
|
||||
};
|
||||
|
||||
/// Response to a ping request.
|
||||
|
|
@ -34,7 +34,7 @@ pub enum DocumentUpdateResponse {
|
|||
Accepted(DocumentVersionWithoutContent),
|
||||
|
||||
/// Nothing was written. The client must incorporate this version before retrying.
|
||||
StaleBase(DocumentVersion),
|
||||
StaleBase(DocumentVersionWithoutContent),
|
||||
}
|
||||
|
||||
#[derive(TS, Debug, Clone, Serialize, Deserialize)]
|
||||
|
|
|
|||
Loading…
Reference in a new issue