Skip to content

Commit e43396d

Browse files
cluster name fetched in api
1 parent b9d775b commit e43396d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

pkg/appStore/installedApp/repository/InstalledAppRepository.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ func (impl InstalledAppRepositoryImpl) GetInstalledAppVersionByInstalledAppIdAnd
460460
installedAppVersion := &InstalledAppVersions{}
461461
err := impl.dbConnection.
462462
Model(installedAppVersion).
463-
Column("installed_app_versions.*", "InstalledApp", "InstalledApp.App", "InstalledApp.Environment", "AppStoreApplicationVersion").
463+
Column("installed_app_versions.*", "InstalledApp", "InstalledApp.App", "InstalledApp.Environment", "InstalledApp.Environment.Cluster", "AppStoreApplicationVersion").
464464
Join("inner join installed_apps ia on ia.id = installed_app_versions.installed_app_id").
465465
Where("ia.id = ?", installedAppId).
466466
Where("ia.environment_id = ?", envId).

pkg/appStore/installedApp/service/EAMode/InstalledAppDBService.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ func (impl *InstalledAppDBServiceImpl) FindAppDetailsForAppstoreApplication(inst
187187
Namespace: installedAppVerison.InstalledApp.Environment.Namespace,
188188
Deprecated: installedAppVerison.AppStoreApplicationVersion.Deprecated,
189189
ClusterId: installedAppVerison.InstalledApp.Environment.ClusterId,
190+
ClusterName: installedAppVerison.InstalledApp.Environment.Cluster.ClusterName,
190191
DeploymentAppType: installedAppVerison.InstalledApp.DeploymentAppType,
191192
DeploymentAppDeleteRequest: installedAppVerison.InstalledApp.DeploymentAppDeleteRequest,
192193
IsVirtualEnvironment: installedAppVerison.InstalledApp.Environment.IsVirtualEnvironment,

0 commit comments

Comments
 (0)