File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
pkg/appStore/deployment/tool/gitops Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -394,11 +394,15 @@ func (impl AppStoreDeploymentArgoCdServiceImpl) GetDeploymentHistory(ctx context
394394 return result , err
395395 }
396396 for _ , updateHistory := range versionHistory {
397- user , err := impl .userService .GetById (updateHistory .CreatedBy )
398- if err != nil {
397+ emailId := "anonymous"
398+ user , err := impl .userService .GetByIdIncludeDeleted (updateHistory .CreatedBy )
399+ if err != nil && ! util .IsErrNoRows (err ) {
399400 impl .Logger .Errorw ("error while fetching user Details" , "error" , err )
400401 return result , err
401402 }
403+ if user != nil {
404+ emailId = user .EmailId
405+ }
402406 history = append (history , & client.HelmAppDeploymentDetail {
403407 ChartMetadata : & client.ChartMetadata {
404408 ChartName : installedAppVersionModel .AppStoreApplicationVersion .AppStore .Name ,
@@ -407,7 +411,7 @@ func (impl AppStoreDeploymentArgoCdServiceImpl) GetDeploymentHistory(ctx context
407411 Home : installedAppVersionModel .AppStoreApplicationVersion .Home ,
408412 Sources : sources ,
409413 },
410- DeployedBy : user . EmailId ,
414+ DeployedBy : emailId ,
411415 DockerImages : []string {installedAppVersionModel .AppStoreApplicationVersion .AppVersion },
412416 DeployedAt : & timestamp.Timestamp {
413417 Seconds : updateHistory .CreatedOn .Unix (),
You can’t perform that action at this time.
0 commit comments