From 867409a41fa29ff4cc9fdff9cd6de39eb8f17e42 Mon Sep 17 00:00:00 2001 From: Hamish Peebles Date: Tue, 26 Nov 2024 15:40:48 +0000 Subject: [PATCH] Fix GroupIndex upgrade (#6897) --- .../canisters/group_index/impl/src/model/public_groups.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/canisters/group_index/impl/src/model/public_groups.rs b/backend/canisters/group_index/impl/src/model/public_groups.rs index 155092f3ea..32d4875673 100644 --- a/backend/canisters/group_index/impl/src/model/public_groups.rs +++ b/backend/canisters/group_index/impl/src/model/public_groups.rs @@ -6,8 +6,8 @@ use serde::{Deserialize, Serialize}; use std::cmp; use std::collections::HashMap; use types::{ - AccessGate, AccessGateConfig, AccessGateConfigInternal, BuildVersion, ChatId, FrozenGroupInfo, GroupMatch, GroupSubtype, - Milliseconds, PublicGroupActivity, PublicGroupSummary, TimestampMillis, + AccessGate, AccessGateConfig, BuildVersion, ChatId, FrozenGroupInfo, GroupMatch, GroupSubtype, Milliseconds, + PublicGroupActivity, PublicGroupSummary, TimestampMillis, }; use utils::iterator_extensions::IteratorExtensions; use utils::time::DAY_IN_MS; @@ -167,7 +167,7 @@ pub struct PublicGroupInfo { hotness_score: u32, exclude_from_hotlist: bool, #[serde(alias = "gate")] - gate_config: Option, + gate_config: Option, } #[derive(Serialize, Deserialize, Clone, Debug, Eq, PartialEq)] @@ -218,7 +218,7 @@ impl PublicGroupInfo { description, subtype, avatar_id, - gate_config: gate_config.map(AccessGateConfigInternal::from), + gate_config: gate_config.map(AccessGateConfigInternal2::from), created: now, marked_active_until: now + MARK_ACTIVE_DURATION, activity: PublicGroupActivity::new(now),