Skip to content

Commit

Permalink
fix: duplicate column name in search query (#6989)
Browse files Browse the repository at this point in the history
(cherry picked from commit 8d04772)
  • Loading branch information
kwasniew committed May 6, 2024
1 parent c0e3f5d commit 75897f1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lib/features/feature-search/feature-search-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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',
);
Expand Down

0 comments on commit 75897f1

Please sign in to comment.