staging #374
@ -77,10 +77,7 @@ WHERE day = ? AND planned_starting_time = ?
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if Trip::find_by_trip_details(db, trip_details.id)
|
if Trip::find_by_trip_details(db, self.id).await.is_none() {
|
||||||
.await
|
|
||||||
.is_none()
|
|
||||||
{
|
|
||||||
// This trip_details belongs to a planned_event, no need to do anything
|
// This trip_details belongs to a planned_event, no need to do anything
|
||||||
return;
|
return;
|
||||||
};
|
};
|
||||||
|
@ -1,11 +1,6 @@
|
|||||||
use sqlx::SqlitePool;
|
use sqlx::SqlitePool;
|
||||||
|
|
||||||
use super::{
|
use super::{notification::Notification, trip::Trip, tripdetails::TripDetails, user::User};
|
||||||
notification::Notification,
|
|
||||||
trip::{Trip, TripWithUserAndType},
|
|
||||||
tripdetails::TripDetails,
|
|
||||||
user::User,
|
|
||||||
};
|
|
||||||
use crate::model::tripdetails::{Action, CoxAtTrip::Yes};
|
use crate::model::tripdetails::{Action, CoxAtTrip::Yes};
|
||||||
|
|
||||||
pub struct UserTrip {}
|
pub struct UserTrip {}
|
||||||
|
Loading…
Reference in New Issue
Block a user