add notification to all pot. coxes if trip is full
This commit is contained in:
@ -1,6 +1,11 @@
|
||||
use sqlx::SqlitePool;
|
||||
|
||||
use super::{notification::Notification, trip::Trip, tripdetails::TripDetails, user::User};
|
||||
use super::{
|
||||
notification::Notification,
|
||||
trip::{Trip, TripWithUserAndType},
|
||||
tripdetails::TripDetails,
|
||||
user::User,
|
||||
};
|
||||
use crate::model::tripdetails::{Action, CoxAtTrip::Yes};
|
||||
|
||||
pub struct UserTrip {}
|
||||
@ -79,6 +84,8 @@ impl UserTrip {
|
||||
None,
|
||||
)
|
||||
.await;
|
||||
|
||||
trip_details.check_free_spaces(db).await;
|
||||
}
|
||||
|
||||
Ok(name_newly_registered_person)
|
||||
|
Reference in New Issue
Block a user