Skip to content

Commit 6718b63

Browse files
authored
Merge pull request #6307 from devtron-labs/oss-ent-change-appdetail
chore: updated ApplistingRestHandler oss/ent function
2 parents e070ba2 + fcebbd3 commit 6718b63

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

api/restHandler/app/appList/AppListingRestHandler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ func (handler AppListingRestHandlerImpl) FetchAppDetailsV2(w http.ResponseWriter
493493
return
494494
}
495495

496-
err = handler.updateApprovalConfigDataInAppDetailResp(appDetail, appId, envId)
496+
appDetail, err = handler.updateApprovalConfigDataInAppDetailResp(appDetail, appId, envId)
497497
if err != nil {
498498
common.WriteJsonResp(w, err, nil, http.StatusInternalServerError)
499499
return

api/restHandler/app/appList/AppListingRestHandler_ent.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ func (handler AppListingRestHandlerImpl) FetchAutocompleteJobCiPipelines(w http.
1414
func (handler AppListingRestHandlerImpl) GetAllAppEnvsFromResourceNames(w http.ResponseWriter, r *http.Request) {
1515
}
1616

17-
func (handler AppListingRestHandlerImpl) updateApprovalConfigDataInAppDetailResp(appDetail AppView.AppDetailContainer, appId, envId int) error {
18-
return nil
17+
func (handler AppListingRestHandlerImpl) updateApprovalConfigDataInAppDetailResp(appDetail AppView.AppDetailContainer, appId, envId int) (AppView.AppDetailContainer, error) {
18+
return AppView.AppDetailContainer{}, nil
1919
}

0 commit comments

Comments
 (0)