mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 04:17:10 +02:00
Apply suggested changes from PR review
This commit is contained in:
parent
4bd8607cf9
commit
9067148270
3 changed files with 3 additions and 6 deletions
|
@ -1,6 +1,5 @@
|
|||
use actix_web::web::Data;
|
||||
use actix_web::{web, HttpRequest, HttpResponse};
|
||||
use env_logger::filter;
|
||||
use index_scheduler::{IndexScheduler, Query, TaskId};
|
||||
use meilisearch_types::error::ResponseError;
|
||||
use meilisearch_types::index_uid::IndexUid;
|
||||
|
@ -188,8 +187,6 @@ pub struct TaskDeletionQuery {
|
|||
async fn delete_tasks(
|
||||
index_scheduler: GuardedData<ActionPolicy<{ actions::TASKS_DELETE }>, Data<IndexScheduler>>,
|
||||
params: web::Query<TaskDeletionQuery>,
|
||||
_req: HttpRequest,
|
||||
_analytics: web::Data<dyn Analytics>,
|
||||
) -> Result<HttpResponse, ResponseError> {
|
||||
let TaskDeletionQuery {
|
||||
type_,
|
||||
|
@ -221,7 +218,7 @@ async fn delete_tasks(
|
|||
query: filtered_query_string,
|
||||
tasks,
|
||||
};
|
||||
// TODO: Lo: analytics
|
||||
|
||||
let task = index_scheduler.register(task_deletion)?;
|
||||
|
||||
let task_view = TaskView::from_task(&task);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue