From 93388317a295a4a1854a4cb086921da9089950a8 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Fri, 22 Jan 2021 18:25:58 +0100 Subject: [PATCH] Remove user from user table --- src/helpers/account_helper.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/helpers/account_helper.rs b/src/helpers/account_helper.rs index 3e5d6e9..21c2bfa 100644 --- a/src/helpers/account_helper.rs +++ b/src/helpers/account_helper.rs @@ -346,5 +346,10 @@ pub fn delete(user_id: &UserID) -> ResultBoxError { // Delete connections to all services destroy_all_user_tokens(user_id)?; + // Remove the user from the database + database::DeleteQuery::new(USERS_TABLE) + .cond_user_id("ID", user_id) + .exec()?; + Ok(()) } \ No newline at end of file