fix errors on http parameter naming

This commit is contained in:
qdequele 2020-03-10 12:08:10 +01:00
parent 179969a9e2
commit b06e33f3d3
No known key found for this signature in database
GPG Key ID: B3F0A000EBF11745

View File

@ -71,7 +71,7 @@ impl RequestExt for Request<Data> {
fn document_id(&self) -> SResult<String> {
let name = self
.param::<String>("documentId")
.param::<String>("document_id")
.map_err(|_| ResponseError::bad_parameter("documentId", "primaryKey"))?;
Ok(name)