Rename receivedDocumentIds into matchedDocuments

Changes DocumentDeletion task details response.
This commit is contained in:
Jarasłaŭ Viktorčyk 2022-10-01 21:59:20 +02:00
parent 2827ff7957
commit 20589a41b5
No known key found for this signature in database
GPG Key ID: BD8074BB4BF68C8C

View File

@ -147,7 +147,7 @@ enum TaskDetails {
IndexInfo { primary_key: Option<String> }, IndexInfo { primary_key: Option<String> },
#[serde(rename_all = "camelCase")] #[serde(rename_all = "camelCase")]
DocumentDeletion { DocumentDeletion {
received_document_ids: usize, matched_documents: usize,
deleted_documents: Option<u64>, deleted_documents: Option<u64>,
}, },
#[serde(rename_all = "camelCase")] #[serde(rename_all = "camelCase")]
@ -255,7 +255,7 @@ impl From<Task> for TaskView {
} => ( } => (
TaskType::DocumentDeletion, TaskType::DocumentDeletion,
Some(TaskDetails::DocumentDeletion { Some(TaskDetails::DocumentDeletion {
received_document_ids: ids.len(), matched_documents: ids.len(),
deleted_documents: None, deleted_documents: None,
}), }),
), ),