Fix a issue that prevent family from being deleted
This commit is contained in:
parent
b424495fd9
commit
6f54ae2ceb
@ -114,6 +114,10 @@ pub async fn delete(member: &mut Member) -> anyhow::Result<()> {
|
|||||||
couples_service::delete(&mut c).await?;
|
couples_service::delete(&mut c).await?;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Remove mother and father links
|
||||||
|
member.set_mother(None);
|
||||||
|
member.set_father(None);
|
||||||
|
|
||||||
remove_photo(member).await?;
|
remove_photo(member).await?;
|
||||||
|
|
||||||
// Remove the member
|
// Remove the member
|
||||||
|
Loading…
Reference in New Issue
Block a user