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:
parent
7d16410ab2
commit
93388317a2
@ -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(())
|
||||
}
|
Loading…
Reference in New Issue
Block a user