cargo fix & fix heroledger
This commit is contained in:
		@@ -43,8 +43,10 @@ fn main() {
 | 
			
		||||
    // Clean up any existing data to ensure consistent results
 | 
			
		||||
    println!("Cleaning up existing data...");
 | 
			
		||||
    let user_collection = db.collection::<User>().expect("can open user collection");
 | 
			
		||||
    let comment_collection = db.collection::<Comment>().expect("can open comment collection");
 | 
			
		||||
    
 | 
			
		||||
    let comment_collection = db
 | 
			
		||||
        .collection::<Comment>()
 | 
			
		||||
        .expect("can open comment collection");
 | 
			
		||||
 | 
			
		||||
    // Clear all existing users and comments
 | 
			
		||||
    if let Ok(existing_users) = user_collection.get_all() {
 | 
			
		||||
        for user in existing_users {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user