Skip to content

Commit

Permalink
fix: duplicate column name in search query (#6989)
Browse files Browse the repository at this point in the history
  • Loading branch information
kwasniew authored May 6, 2024
1 parent 5c27e75 commit 8d04772
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 8d04772

Please sign in to comment.