mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-22 21:04:27 +01:00
fix errors on http parameter naming
This commit is contained in:
parent
179969a9e2
commit
b06e33f3d3
@ -71,7 +71,7 @@ impl RequestExt for Request<Data> {
|
|||||||
|
|
||||||
fn document_id(&self) -> SResult<String> {
|
fn document_id(&self) -> SResult<String> {
|
||||||
let name = self
|
let name = self
|
||||||
.param::<String>("documentId")
|
.param::<String>("document_id")
|
||||||
.map_err(|_| ResponseError::bad_parameter("documentId", "primaryKey"))?;
|
.map_err(|_| ResponseError::bad_parameter("documentId", "primaryKey"))?;
|
||||||
|
|
||||||
Ok(name)
|
Ok(name)
|
||||||
|
Loading…
Reference in New Issue
Block a user