diff --git a/src/model/usertrip.rs b/src/model/usertrip.rs index cd701de..6a8d8a2 100644 --- a/src/model/usertrip.rs +++ b/src/model/usertrip.rs @@ -43,6 +43,7 @@ impl UserTrip { } pub async fn delete(db: &SqlitePool, user_id: i64, trip_details_id: i64) { + //TODO: Check if > 2 hrs to event let _ = sqlx::query!( "DELETE FROM user_trip WHERE user_id = ? AND trip_details_id = ?", user_id,