1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2024-11-22 13:29:21 +00:00

Remove user from user table

This commit is contained in:
Pierre HUBERT 2021-01-22 18:25:58 +01:00
parent 7d16410ab2
commit 93388317a2

View File

@ -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(())
}