diff --git a/server-api/src/http.rs b/server-api/src/http.rs index f296771..924db17 100644 --- a/server-api/src/http.rs +++ b/server-api/src/http.rs @@ -27,4 +27,11 @@ pub async fn parse_json_params(body_raw: &mut Body) -> Result u64 { + // pulling 'id' from user params is safe because the + // auth modules guarantees this to be there already + values.get("id").unwrap().as_u64().unwrap() } \ No newline at end of file