From 4086287ff865d8995260d615a2476c5d86108b30 Mon Sep 17 00:00:00 2001 From: ravibazz Date: Thu, 14 Nov 2024 20:22:28 +0530 Subject: [PATCH] fix refactor issue --- src/canister/platform_orchestrator/src/data_model/mod.rs | 4 ++-- src/lib/shared_utils/src/types/creator_dao_stats.rs | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/canister/platform_orchestrator/src/data_model/mod.rs b/src/canister/platform_orchestrator/src/data_model/mod.rs index 2096eceb..a5387e33 100644 --- a/src/canister/platform_orchestrator/src/data_model/mod.rs +++ b/src/canister/platform_orchestrator/src/data_model/mod.rs @@ -145,9 +145,9 @@ impl CanisterData { individual_user_profile_id: Principal, root_canister_ids: HashSet, ) { - root_canister_ids.iter().for_each(|governance_canister_id| { + root_canister_ids.iter().for_each(|root_canister_id| { self.creator_dao_stats - .insert_new_entry(individual_user_profile_id, *governance_canister_id); + .insert_new_entry(individual_user_profile_id, *root_canister_id); }); } } diff --git a/src/lib/shared_utils/src/types/creator_dao_stats.rs b/src/lib/shared_utils/src/types/creator_dao_stats.rs index cf198782..c371322a 100644 --- a/src/lib/shared_utils/src/types/creator_dao_stats.rs +++ b/src/lib/shared_utils/src/types/creator_dao_stats.rs @@ -22,7 +22,7 @@ impl CreatorDaoTokenStats { pub fn insert_new_entry( &mut self, individual_user_profile_id: IndividualProfileId, - governance_canister_id: RootCanisterId, + root_canister_id: RootCanisterId, ) { let individual_user_creator_dao_entry = self .creator_dao_token_sns_canisters @@ -31,7 +31,7 @@ impl CreatorDaoTokenStats { if let Some(individual_user_creator_dao_entry) = individual_user_creator_dao_entry { if individual_user_creator_dao_entry .deployed_canisters - .insert(governance_canister_id) + .insert(root_canister_id) { self.total_number_of_creator_dao_tokens += 1; } @@ -40,7 +40,7 @@ impl CreatorDaoTokenStats { individual_user_profile_id, IndividualUserCreatorDaoEntry { individual_profile_id: individual_user_profile_id, - deployed_canisters: vec![governance_canister_id].into_iter().collect(), + deployed_canisters: vec![root_canister_id].into_iter().collect(), }, );