Skip to content

Commit

Permalink
Fix GroupIndex upgrade (#6897)
Browse files Browse the repository at this point in the history
  • Loading branch information
hpeebles authored Nov 26, 2024
1 parent 8789c85 commit 867409a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions backend/canisters/group_index/impl/src/model/public_groups.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -167,7 +167,7 @@ pub struct PublicGroupInfo {
hotness_score: u32,
exclude_from_hotlist: bool,
#[serde(alias = "gate")]
gate_config: Option<AccessGateConfigInternal>,
gate_config: Option<AccessGateConfigInternal2>,
}

#[derive(Serialize, Deserialize, Clone, Debug, Eq, PartialEq)]
Expand Down Expand Up @@ -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),
Expand Down

0 comments on commit 867409a

Please sign in to comment.