fix ci
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

This commit is contained in:
2024-04-15 18:24:18 +02:00
parent 0bc00472d7
commit 4b07c11bc3
2 changed files with 2 additions and 10 deletions

View File

@ -77,10 +77,7 @@ WHERE day = ? AND planned_starting_time = ?
return;
}
if Trip::find_by_trip_details(db, trip_details.id)
.await
.is_none()
{
if Trip::find_by_trip_details(db, self.id).await.is_none() {
// This trip_details belongs to a planned_event, no need to do anything
return;
};