Compare commits
6 Commits
856e3b2cff
...
0f345862ee
Author | SHA1 | Date | |
---|---|---|---|
0f345862ee | |||
d1102a7b04 | |||
faa8b4e767 | |||
bed4b4eb44 | |||
31a7643d96 | |||
e141bcfc37 |
@@ -104,10 +104,10 @@ impl Trip {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if let Some(trip) = Trip::find_by_trip_details(db, notify.id).await {
|
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(
|
Notification::create(
|
||||||
db,
|
db,
|
||||||
&user,
|
&user_earlier_trip,
|
||||||
&format!(
|
&format!(
|
||||||
"{} hat eine Ausfahrt zur selben Zeit ({} um {}) wie du erstellt",
|
"{} hat eine Ausfahrt zur selben Zeit ({} um {}) wie du erstellt",
|
||||||
user.name, trip.day, trip.planned_starting_time
|
user.name, trip.day, trip.planned_starting_time
|
||||||
|
Reference in New Issue
Block a user