cargo fix & fix heroledger

This commit is contained in:
Timur Gordon
2025-08-21 14:15:29 +02:00
parent 130822b69b
commit ce12f26a91
26 changed files with 173 additions and 153 deletions

View File

@@ -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 {