Skip to content

Commit 3e864b7

Browse files
authored
Merge pull request #6219 from devtron-labs/sql-query-fix-dec
fix: Sql query fix dec
2 parents 8ae74b5 + e0a8953 commit 3e864b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/appStore/installedApp/repository/InstalledAppRepository.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -815,7 +815,7 @@ func (impl *InstalledAppRepositoryImpl) GetInstalledAppByAppIdAndDeploymentType(
815815
var installedApps InstalledApps
816816
queryString := `select * from installed_apps
817817
left join deployment_config dc on dc.active=true and dc.app_id = installed_apps.app_id and dc.environment_id=installed_apps.environment_id
818-
where active=? and app_id=? and (installed_apps.deployment_app_type=? or dc.deployment_app_type=?);`
818+
where installed_apps.active=? and installed_apps.app_id=? and (installed_apps.deployment_app_type=? or dc.deployment_app_type=?);`
819819
_, err := impl.dbConnection.Query(&installedApps, queryString, true, appId, deploymentAppType, deploymentAppType)
820820
if err != nil {
821821
impl.Logger.Errorw("error in fetching InstalledApp", "err", err)

0 commit comments

Comments
 (0)