diff --git a/backend/libraries/types/src/gated_groups.rs b/backend/libraries/types/src/gated_groups.rs index 0c83904382..083821142a 100644 --- a/backend/libraries/types/src/gated_groups.rs +++ b/backend/libraries/types/src/gated_groups.rs @@ -77,7 +77,7 @@ impl From for AccessGateConfigInternal { impl From for AccessGateConfigInternal { fn from(value: AccessGateCombined) -> Self { match value { - AccessGateCombined::AccessGateConfig(access_gate_config) => access_gate_config, + AccessGateCombined::AccessGateConfig { gate, expiry } => AccessGateConfigInternal { gate, expiry }, AccessGateCombined::Accessgate(access_gate) => access_gate.into(), } } @@ -86,7 +86,7 @@ impl From for AccessGateConfigInternal { #[derive(Serialize, Deserialize)] #[serde(untagged)] pub enum AccessGateCombined { - AccessGateConfig(AccessGateConfigInternal), + AccessGateConfig { gate: AccessGate, expiry: Option }, Accessgate(AccessGate), }