Askgviadsbkabdsvlkuad:wq
This commit is contained in:
parent
74dd2bf6d9
commit
0c4b03d896
|
@ -11,7 +11,7 @@ pub async fn release_handler(db: Data<Mutex<Database>>, token: Token, body: Rele
|
||||||
let title = format!("{} has been released on {}!", body.release.tag_name, body.repository.full_name);
|
let title = format!("{} has been released on {}!", body.release.tag_name, body.repository.full_name);
|
||||||
|
|
||||||
dbg!(body);
|
dbg!(body);
|
||||||
|
body.hook
|
||||||
// models::posts::Post::create_new(
|
// models::posts::Post::create_new(
|
||||||
// db.lock().unwrap().borrow_mut(),
|
// db.lock().unwrap().borrow_mut(),
|
||||||
// title,
|
// title,
|
||||||
|
|
|
@ -47,7 +47,10 @@ pub async fn handler(req: HttpRequest, body: Bytes, db: Data<Mutex<Database>>) -
|
||||||
|
|
||||||
match event {
|
match event {
|
||||||
types::Event::Release(body) => events::release_handler(db, token, body, json).await,
|
types::Event::Release(body) => events::release_handler(db, token, body, json).await,
|
||||||
_ => Ok(HttpResponse::Ok())
|
_ => {
|
||||||
|
dbg!(json);
|
||||||
|
Ok(HttpResponse::Ok())
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user