move todo to proper location

This commit is contained in:
philipp 2023-04-05 22:04:05 +02:00
parent e8b140e564
commit 92040e7eac

View File

@ -43,6 +43,7 @@ impl UserTrip {
} }
pub async fn delete(db: &SqlitePool, user_id: i64, trip_details_id: i64) { pub async fn delete(db: &SqlitePool, user_id: i64, trip_details_id: i64) {
//TODO: Check if > 2 hrs to event
let _ = sqlx::query!( let _ = sqlx::query!(
"DELETE FROM user_trip WHERE user_id = ? AND trip_details_id = ?", "DELETE FROM user_trip WHERE user_id = ? AND trip_details_id = ?",
user_id, user_id,