Fix a issue that prevent family from being deleted

This commit is contained in:
Pierre HUBERT 2023-08-18 15:39:00 +02:00
parent b424495fd9
commit 6f54ae2ceb

View File

@ -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