Compare commits

...

2 Commits

Author SHA1 Message Date
db318c23cd Merge pull request 'push' (#658) from fix into main
All checks were successful
CI/CD Pipeline / test (push) Successful in 10m47s
CI/CD Pipeline / deploy-staging (push) Has been skipped
CI/CD Pipeline / deploy-main (push) Successful in 7m17s
Reviewed-on: #658
2024-07-28 07:44:42 +02:00
23aa6aa0f8 push
Some checks failed
CI/CD Pipeline / deploy-staging (push) Blocked by required conditions
CI/CD Pipeline / deploy-main (push) Blocked by required conditions
CI/CD Pipeline / test (push) Has been cancelled
2024-07-28 07:43:56 +02:00

View File

@ -179,8 +179,8 @@ impl From<LogbookUpdateError> for LogbookCreateError {
} }
LogbookUpdateError::TooFast(km, min) => LogbookCreateError::TooFast(km, min), LogbookUpdateError::TooFast(km, min) => LogbookCreateError::TooFast(km, min),
LogbookUpdateError::AlreadyFinalized => LogbookCreateError::AlreadyFinalized, LogbookUpdateError::AlreadyFinalized => LogbookCreateError::AlreadyFinalized,
LogbookUpdateError::ExternalSteeringPersonMustSteer => { LogbookUpdateError::ExternalSteeringPersonMustSteerOrShipmaster => {
LogbookCreateError::ExternalSteeringPersonMustSteer LogbookCreateError::ExternalSteeringPersonMustSteerOrShipmaster
} }
} }
} }
@ -626,6 +626,7 @@ ORDER BY departure DESC
self.remove_rowers(db).await; self.remove_rowers(db).await;
for rower in &log.rowers { for rower in &log.rowers {
let user = User::find_by_id_tx(db, *rower as i32).await.unwrap();
if user.name == "Externe Steuerperson" { if user.name == "Externe Steuerperson" {
if let (Some(steering_id), Some(shipmaster_id)) = if let (Some(steering_id), Some(shipmaster_id)) =
(log.steering_person, log.shipmaster) (log.steering_person, log.shipmaster)