diff --git a/src/database/migrations/reset_stats.rs b/src/database/migrations/reset_stats.rs index 06c3f62..c3c82ce 100644 --- a/src/database/migrations/reset_stats.rs +++ b/src/database/migrations/reset_stats.rs @@ -30,5 +30,12 @@ impl DatabaseMigration for ResetStatsMigration { warn!("Could not reset stats: {}", err); } }; + info!("Resetting achievement first completions.."); + database.achievements.update_many( + doc! {}, + doc! {"$set": {"firstCompletion": null}}, + None + ).await; + info!("Reset achievement first completions"); } } \ No newline at end of file