remove notificatoin about canceled trip if cancelation has been canceled

This commit is contained in:
2024-05-21 20:43:05 +02:00
parent 3b75f38dca
commit 64f3596132
3 changed files with 22 additions and 0 deletions

View File

@@ -232,6 +232,12 @@ WHERE day=?
.await;
}
}
} else {
Notification::delete_by_action(
db,
&format!("remove_user_trip_with_trip_details_id:{}", trip_details_id),
)
.await;
}
let trip_details = TripDetails::find_by_id(db, trip_details_id).await.unwrap();