1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00

fix: duplicate column name in search query (#6989)

This commit is contained in:
Mateusz Kwasniewski 2024-05-06 19:26:23 +02:00 committed by GitHub
parent 5c27e75014
commit 8d04772256
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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',
);