don't create any notification if we are working with planned_event
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:
philipp 2024-04-15 18:22:58 +02:00
parent 37da4f2c3e
commit 0bc00472d7

View File

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