no special treatment for 'externes boot'
This commit is contained in:
@ -582,13 +582,13 @@ ORDER BY departure DESC
|
||||
).await;
|
||||
}
|
||||
|
||||
if boat.name == "Externes Boot" {
|
||||
if boat.external {
|
||||
let vorstand = Role::find_by_name_tx(db, "Vorstand").await.unwrap();
|
||||
|
||||
Notification::create_for_role_tx(
|
||||
db,
|
||||
&vorstand,
|
||||
&format!("'{}' hat eine Ausfahrt mit *Externem Boot* am {} eingetragen ({} km; Ziel: {}; Anmerkungen: {}). Falls das nicht stimmen sollte, bitte nachhaken.",user.name,log.departure,log.distance_in_km, log.destination, log.comments.unwrap_or("".into())),
|
||||
&format!("'{}' hat eine Ausfahrt mit externem Boot '{}' am {} eingetragen ({} km; Ziel: {}; Anmerkungen: {}). Falls das nicht stimmen sollte, bitte nachhaken.",user.name,boat.name,log.departure,log.distance_in_km, log.destination, log.comments.unwrap_or("".into())),
|
||||
"Ausfahrt mit externem Boot eingetragen",
|
||||
None,
|
||||
).await;
|
||||
|
Reference in New Issue
Block a user