Skip to content

Commit

Permalink
Include resetting first completions in the reset_stats script
Browse files Browse the repository at this point in the history
  • Loading branch information
chatasma committed Jul 13, 2024
1 parent 0fd2de4 commit 5720c10
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/database/migrations/reset_stats.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
}

0 comments on commit 5720c10

Please sign in to comment.