also show own trips

This commit is contained in:
2024-09-11 11:42:59 +02:00
parent af8637d2b7
commit 8666b014f2
2 changed files with 10 additions and 3 deletions

View File

@ -19,7 +19,7 @@ pub(crate) async fn get_personal_cal(db: &SqlitePool, user: &User) -> String {
let trips = Trip::all_with_user(db, user).await;
for trip in trips {
calendar.add_event(trip.get_vevent(db).await);
calendar.add_event(trip.get_vevent(user).await);
}
let mut buf = Vec::new();
write!(&mut buf, "{}", calendar).unwrap();