Add the question mark to the task deletion query filter

This commit is contained in:
Kerollmops 2022-11-16 14:28:30 +01:00
parent 1ef517f63d
commit ed51df41e5
No known key found for this signature in database
GPG Key ID: 92ADA4E935E71FA4
2 changed files with 2 additions and 2 deletions

View File

@ -537,7 +537,7 @@ async fn delete_tasks(
&index_scheduler.filters().search_rules.authorized_indexes(),
)?;
let task_deletion =
KindWithContent::TaskDeletion { query: req.query_string().to_string(), tasks };
KindWithContent::TaskDeletion { query: format!("?{}", req.query_string()), tasks };
let task = task::spawn_blocking(move || index_scheduler.register(task_deletion)).await??;
let task: SummarizedTaskView = task.into();

View File

@ -837,7 +837,7 @@ async fn test_summarized_task_deletion() {
"details": {
"matchedTasks": 1,
"deletedTasks": 1,
"originalFilters": "uids=0"
"originalFilters": "?uids=0"
},
"error": null,
"duration": "[duration]",