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);
|
||||
|
||||
dbg!(body);
|
||||
|
||||
body.hook
|
||||
// models::posts::Post::create_new(
|
||||
// db.lock().unwrap().borrow_mut(),
|
||||
// title,
|
||||
|
|
|
@ -47,7 +47,10 @@ pub async fn handler(req: HttpRequest, body: Bytes, db: Data<Mutex<Database>>) -
|
|||
|
||||
match event {
|
||||
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