clean function

This commit is contained in:
2023-04-26 17:02:47 +02:00
parent 346a9b1d91
commit ef921314d2
2 changed files with 14 additions and 6 deletions

View File

@ -36,13 +36,17 @@ async fn create(
)
.await;
let trip_details = TripDetails::find_by_id(db, trip_details_id).await.unwrap(); //Okay, bc. we
//just created
//the object
//TODO: fix clone()
PlannedEvent::create(
db,
data.name.clone(),
data.planned_amount_cox,
data.allow_guests,
trip_details_id,
trip_details,
)
.await;