mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-23 10:37:41 +08:00
Add the question mark to the task deletion query filter
This commit is contained in:
parent
1ef517f63d
commit
ed51df41e5
@ -537,7 +537,7 @@ async fn delete_tasks(
|
|||||||
&index_scheduler.filters().search_rules.authorized_indexes(),
|
&index_scheduler.filters().search_rules.authorized_indexes(),
|
||||||
)?;
|
)?;
|
||||||
let task_deletion =
|
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 = task::spawn_blocking(move || index_scheduler.register(task_deletion)).await??;
|
||||||
let task: SummarizedTaskView = task.into();
|
let task: SummarizedTaskView = task.into();
|
||||||
|
@ -837,7 +837,7 @@ async fn test_summarized_task_deletion() {
|
|||||||
"details": {
|
"details": {
|
||||||
"matchedTasks": 1,
|
"matchedTasks": 1,
|
||||||
"deletedTasks": 1,
|
"deletedTasks": 1,
|
||||||
"originalFilters": "uids=0"
|
"originalFilters": "?uids=0"
|
||||||
},
|
},
|
||||||
"error": null,
|
"error": null,
|
||||||
"duration": "[duration]",
|
"duration": "[duration]",
|
||||||
|
Loading…
Reference in New Issue
Block a user