add a log message about how many users are being upgraded

This commit is contained in:
Bryan Stitt 2023-07-26 21:02:29 -07:00
parent bd31c3ffa4
commit f9dd827439

View File

@ -49,6 +49,8 @@ impl MassGrantCredits {
while let Some(users_to_upgrade) = user_stream.try_next().await? {
let txn = db_conn.begin().await?;
info!("Upgrading {} users", users_to_upgrade.len());
for user_to_upgrade in users_to_upgrade {
if self.credits > 0.into() {
let increase_balance_receipt = admin_increase_balance_receipt::ActiveModel {