This commit is contained in:
2023-05-03 13:32:23 +02:00
parent 7981751f18
commit 913d0ac78e
7 changed files with 40 additions and 33 deletions

View File

@ -34,6 +34,7 @@ impl UserTrip {
return Err(UserTripError::CantRegisterAtOwnEvent);
}
//TODO: can probably move to trip.rs?
//check if cox if planned_event
let is_cox = sqlx::query!(
"SELECT count(*) as amount