diff --git a/geneit_backend/src/services/members_service.rs b/geneit_backend/src/services/members_service.rs index 30257fa..66aee47 100644 --- a/geneit_backend/src/services/members_service.rs +++ b/geneit_backend/src/services/members_service.rs @@ -114,6 +114,10 @@ pub async fn delete(member: &mut Member) -> anyhow::Result<()> { couples_service::delete(&mut c).await?; } + // Remove mother and father links + member.set_mother(None); + member.set_father(None); + remove_photo(member).await?; // Remove the member