diff --git a/src/lib/features/feature-search/feature-search-store.ts b/src/lib/features/feature-search/feature-search-store.ts index edb5aa5e55..de1c07556b 100644 --- a/src/lib/features/feature-search/feature-search-store.ts +++ b/src/lib/features/feature-search/feature-search-store.ts @@ -250,8 +250,8 @@ class FeatureSearchStore implements IFeatureSearchStore { .sum('yes as yes') .sum('no as no') .select([ - 'client_metrics_env.environment', - 'client_metrics_env.feature_name', + 'client_metrics_env.environment as metric_environment', + 'client_metrics_env.feature_name as metric_feature_name', ]) .from('client_metrics_env') .innerJoin( @@ -278,11 +278,11 @@ class FeatureSearchStore implements IFeatureSearchStore { ) .leftJoin('metrics', (qb) => { qb.on( - 'metrics.environment', + 'metric_environment', '=', 'ranked_features.environment', ).andOn( - 'metrics.feature_name', + 'metric_feature_name', '=', 'ranked_features.feature_name', );