From 93a0fd53c2dd4ba06e8c245568dab4673b616adb Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Thu, 21 Jan 2021 18:58:31 +0100 Subject: [PATCH] Delete user account image when deleting user account --- src/helpers/account_helper.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/helpers/account_helper.rs b/src/helpers/account_helper.rs index 278f35f..280aa2e 100644 --- a/src/helpers/account_helper.rs +++ b/src/helpers/account_helper.rs @@ -333,6 +333,9 @@ pub fn delete(user_id: &UserID) -> ResultBoxError { // Delete all user friends, including friendship requests friends_helper::delete_all_user(user_id)?; + // Delete user account image + delete_account_image(user_id)?; + // TODO : continue work here Ok(())