add notification to all pot. coxes if trip is full

This commit is contained in:
2024-04-15 18:16:43 +02:00
parent 1869b36e09
commit 74505c1554
3 changed files with 69 additions and 3 deletions

View File

@ -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)