remove unneeded async
parent
c31c8e91ac
commit
58fa1864d1
|
@ -115,7 +115,7 @@ async fn add_drink(
|
|||
};
|
||||
let open_shift = open_shift.unwrap();
|
||||
|
||||
async {
|
||||
{
|
||||
use cm_lib::schema::drinks::dsl::*;
|
||||
|
||||
diesel::insert_into(drinks)
|
||||
|
@ -123,8 +123,7 @@ async fn add_drink(
|
|||
.execute(&mut conn)
|
||||
.await
|
||||
.unwrap()
|
||||
}
|
||||
.await;
|
||||
};
|
||||
|
||||
let mut headers = axum::http::HeaderMap::new();
|
||||
headers.insert("HX-Push-Url", "/".parse().unwrap());
|
||||
|
|
Loading…
Reference in New Issue