actually save

This commit is contained in:
Bryan Stitt 2022-11-16 21:21:27 +00:00
parent 21f2a78612
commit eb96ab0a6c

@ -3,7 +3,8 @@ use argh::FromArgs;
use entities::{rpc_key, user, user_tier};
use log::{debug, info};
use migration::sea_orm::{
self, ColumnTrait, DatabaseConnection, EntityTrait, IntoActiveModel, QueryFilter,
self, ActiveModelTrait, ColumnTrait, DatabaseConnection, EntityTrait, IntoActiveModel,
QueryFilter,
};
use uuid::Uuid;
use web3_proxy::frontend::authorization::RpcSecretKey;
@ -52,6 +53,8 @@ impl ChangeUserTierByKeyCommand {
user.user_tier_id = sea_orm::Set(user_tier.id);
user.save(db_conn).await?;
info!("user's tier changed");
}