diff --git a/src/requests/post_requests.rs b/src/requests/post_requests.rs index f014137..7c053c9 100644 --- a/src/requests/post_requests.rs +++ b/src/requests/post_requests.rs @@ -115,23 +115,7 @@ pub async fn add_tea( .fetch_one(&state.pool) .await { - Ok(tea) => { - // add steeping time change to steeping log - match sqlx::query( - " - INSERT INTO steepinglog (tea_id, steeping_seconds) - VALUES ($1, $2) - ", - ) - .bind(tea.id) - .bind(tea.steeping_seconds) - .execute(&state.pool) - .await - { - Ok(_) => Ok((StatusCode::OK, Json(tea))), - Err(e) => Err((StatusCode::BAD_REQUEST, e.to_string())), - } - } + Ok(tea) => Ok((StatusCode::OK, Json(tea))), Err(e) => Err((StatusCode::BAD_REQUEST, e.to_string())), } }