uwu
This commit is contained in:
parent
79d649ae58
commit
07c246f5f0
|
@ -38,10 +38,13 @@ pub async fn handler(req: HttpRequest, token: web::Path<String>, body: Bytes, db
|
||||||
return Ok(HttpResponse::BadRequest());
|
return Ok(HttpResponse::BadRequest());
|
||||||
};
|
};
|
||||||
|
|
||||||
let Ok(event) = types::Event::from_raw_json(event_type, json.clone()) else {
|
let event = match types::Event::from_raw_json(event_type, json.clone()) {
|
||||||
log::debug!("Bad request body json");
|
Ok(e) => e,
|
||||||
|
Err(e) => {
|
||||||
|
log::debug!("Bad request body json: {e}");
|
||||||
log::debug!("{json:?}");
|
log::debug!("{json:?}");
|
||||||
return Ok(HttpResponse::BadRequest());
|
return Ok(HttpResponse::BadRequest());
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
match event {
|
match event {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user