remove unneeded async
This commit is contained in:
parent
c31c8e91ac
commit
58fa1864d1
1 changed files with 2 additions and 3 deletions
|
@ -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 a new issue