mirror of
				https://gitlab.com/comunic/comunicapiv3
				synced 2025-10-31 07:34:45 +00:00 
			
		
		
		
	Remove user from user table
This commit is contained in:
		| @@ -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(()) | ||||
| } | ||||
		Reference in New Issue
	
	Block a user