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
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();