@@ -40,7 +40,12 @@ func (api *API) updateAsCodePipelineHandler() service.Handler {
4040 return sdk .WrapError (sdk .ErrInvalidPipelinePattern , "updateAsCodePipelineHandler: Pipeline name %s do not respect pattern" , p .Name )
4141 }
4242
43- proj , err := project .Load (api .mustDB (), key , project .LoadOptions .WithClearKeys )
43+ proj , err := project .Load (api .mustDB (), key ,
44+ project .LoadOptions .WithApplicationWithDeploymentStrategies ,
45+ project .LoadOptions .WithPipelines ,
46+ project .LoadOptions .WithEnvironments ,
47+ project .LoadOptions .WithIntegrations ,
48+ project .LoadOptions .WithClearKeys )
4449 if err != nil {
4550 return err
4651 }
@@ -295,7 +300,11 @@ func (api *API) getPipelineHandler() service.Handler {
295300 withWorkflows := FormBool (r , "withWorkflows" )
296301 withAsCodeEvent := FormBool (r , "withAsCodeEvents" )
297302
298- proj , err := project .Load (api .mustDB (), projectKey )
303+ proj , err := project .Load (api .mustDB (), projectKey ,
304+ project .LoadOptions .WithApplicationWithDeploymentStrategies ,
305+ project .LoadOptions .WithPipelines ,
306+ project .LoadOptions .WithEnvironments ,
307+ project .LoadOptions .WithIntegrations )
299308 if err != nil {
300309 return err
301310 }
0 commit comments