From 4b07c11bc377c15209ab813bb6072a8591bb64d3 Mon Sep 17 00:00:00 2001 From: philipp Date: Mon, 15 Apr 2024 18:24:18 +0200 Subject: [PATCH] fix ci --- src/model/tripdetails.rs | 5 +---- src/model/usertrip.rs | 7 +------ 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/src/model/tripdetails.rs b/src/model/tripdetails.rs index 0667766..109eefe 100644 --- a/src/model/tripdetails.rs +++ b/src/model/tripdetails.rs @@ -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; }; diff --git a/src/model/usertrip.rs b/src/model/usertrip.rs index ff12fbf..647f7cd 100644 --- a/src/model/usertrip.rs +++ b/src/model/usertrip.rs @@ -1,11 +1,6 @@ use sqlx::SqlitePool; -use super::{ - notification::Notification, - trip::{Trip, TripWithUserAndType}, - tripdetails::TripDetails, - user::User, -}; +use super::{notification::Notification, trip::Trip, tripdetails::TripDetails, user::User}; use crate::model::tripdetails::{Action, CoxAtTrip::Yes}; pub struct UserTrip {}