This commit is contained in:
2023-09-17 23:25:02 +02:00
parent e0f14f0b9e
commit 2c092d1fc9
4 changed files with 150 additions and 98 deletions

View File

@@ -440,8 +440,10 @@ pub async fn trip(
let deleted = components::trips::todos::Todo::delete(
&ctx,
&state.database_pool,
&todos::Filter { trip_id: id },
components::trips::todos::Id::new(delete_todo),
&todos::Reference {
id: components::trips::todos::Id::new(delete_todo),
higher: todos::Higher { trip_id: id },
},
)
.await?;