Merge pull request 'correct-name-in-notification' (#877) from correct-name-in-notification into main
Reviewed-on: #877
This commit is contained in:
		| @@ -104,10 +104,10 @@ impl Trip { | ||||
|                 } | ||||
|  | ||||
|                 if let Some(trip) = Trip::find_by_trip_details(db, notify.id).await { | ||||
|                     let user = User::find_by_id(db, trip.cox_id as i32).await.unwrap(); | ||||
|                     let user_earlier_trip = User::find_by_id(db, trip.cox_id as i32).await.unwrap(); | ||||
|                     Notification::create( | ||||
|                         db, | ||||
|                         &user, | ||||
|                         &user_earlier_trip, | ||||
|                         &format!( | ||||
|                             "{} hat eine Ausfahrt zur selben Zeit ({} um {}) wie du erstellt", | ||||
|                             user.name, trip.day, trip.planned_starting_time | ||||
|   | ||||
		Reference in New Issue
	
	Block a user