diff --git a/src/requests/get_requests.rs b/src/requests/get_requests.rs index 9b4fcb0..e55a18f 100644 --- a/src/requests/get_requests.rs +++ b/src/requests/get_requests.rs @@ -106,6 +106,7 @@ pub async fn delete_tea_by_id( ) -> Result { match sqlx::query_as::<_, Tea>( " + DELETE FROM steepinglog WHERE tea_id = $1; DELETE FROM tea WHERE id = $1 RETURNING id, tea_name, rfid_code, tea_notes, water_temp, steeping_seconds, registration_timestamp ",