Askgviadsbkabdsvlkuad:wq

This commit is contained in:
Gvidas Juknevičius 2024-03-30 17:59:01 +02:00
parent 74dd2bf6d9
commit 0c4b03d896
Signed by: MCorange
GPG Key ID: 12B1346D720B7FBB
2 changed files with 5 additions and 2 deletions

View File

@ -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,

View File

@ -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())
}
} }
} }