[ci] Add all target to check

This commit is contained in:
Jean SIMARD 2020-11-30 17:41:01 +01:00
parent a77d517ac1
commit d1f34f926e
No known key found for this signature in database
GPG key ID: 98BD56777D7767B4
6 changed files with 10 additions and 6 deletions

View file

@ -101,7 +101,7 @@ where
} else {
let error = ResponseError::from(Error::InvalidToken(auth_header.to_string())).error_response();
let (request, _) = req.into_parts();
return Box::pin(ok(ServiceResponse::new(request, error)))
Box::pin(ok(ServiceResponse::new(request, error)))
}
}
}

View file

@ -175,7 +175,7 @@ async fn update_multiple_documents(
.ok_or(meilisearch_core::Error::SchemaMissing)?;
match (params.into_inner().primary_key, schema.primary_key()) {
(Some(_), Some(_)) => return Err(meilisearch_schema::Error::PrimaryKeyAlreadyPresent)?,
(Some(_), Some(_)) => return Err(meilisearch_schema::Error::PrimaryKeyAlreadyPresent.into()),
(Some(key), None) => document_addition.set_primary_key(key),
(None, None) => {
let key = body