Skip to content

Commit

Permalink
fix: Make experiment response type consistent with the db type
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushjain17 committed Sep 9, 2024
1 parent bad614a commit 2431828
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/experimentation_platform/src/api/experiments/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ pub struct ExperimentResponse {

pub context: Value,
pub variants: Value,
pub last_modified_by: String,
pub chosen_variant: Option<String>,
}

Expand All @@ -79,6 +80,7 @@ impl From<models::Experiment> for ExperimentResponse {

context: experiment.context,
variants: experiment.variants,
last_modified_by: experiment.last_modified_by,
chosen_variant: experiment.chosen_variant,
}
}
Expand Down

0 comments on commit 2431828

Please sign in to comment.