fix the details

This commit is contained in:
Tamo 2023-05-02 22:53:16 +02:00 committed by Louis Dureuil
parent 0f0cd2d929
commit b5fe0b2b07
No known key found for this signature in database
3 changed files with 6 additions and 0 deletions

View File

@ -135,6 +135,7 @@ impl From<Details> for DetailsView {
},
Details::DocumentDeletionByFilter { original_filter, deleted_documents } => {
DetailsView {
provided_ids: Some(0),
original_filter: Some(original_filter),
deleted_documents: Some(deleted_documents),
..DetailsView::default()

View File

@ -176,6 +176,7 @@ async fn delete_document_by_filter() {
"type": "documentDeletion",
"canceledBy": null,
"details": {
"providedIds": 0,
"deletedDocuments": 2,
"originalFilter": "\"color = blue\""
},
@ -228,6 +229,7 @@ async fn delete_document_by_filter() {
"type": "documentDeletion",
"canceledBy": null,
"details": {
"providedIds": 0,
"deletedDocuments": 2,
"originalFilter": "\"color = blue\""
},

View File

@ -485,6 +485,7 @@ async fn delete_document_by_filter() {
"type": "documentDeletion",
"canceledBy": null,
"details": {
"providedIds": 0,
"deletedDocuments": 0,
"originalFilter": "\"doggo = bernese\""
},
@ -518,6 +519,7 @@ async fn delete_document_by_filter() {
"type": "documentDeletion",
"canceledBy": null,
"details": {
"providedIds": 0,
"deletedDocuments": 0,
"originalFilter": "\"doggo = bernese\""
},
@ -551,6 +553,7 @@ async fn delete_document_by_filter() {
"type": "documentDeletion",
"canceledBy": null,
"details": {
"providedIds": 0,
"deletedDocuments": 0,
"originalFilter": "\"catto = jorts\""
},