@@ -40,7 +40,12 @@ func (api *API) updateAsCodePipelineHandler() service.Handler {
40
40
return sdk .WrapError (sdk .ErrInvalidPipelinePattern , "updateAsCodePipelineHandler: Pipeline name %s do not respect pattern" , p .Name )
41
41
}
42
42
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 )
44
49
if err != nil {
45
50
return err
46
51
}
@@ -295,7 +300,11 @@ func (api *API) getPipelineHandler() service.Handler {
295
300
withWorkflows := FormBool (r , "withWorkflows" )
296
301
withAsCodeEvent := FormBool (r , "withAsCodeEvents" )
297
302
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 )
299
308
if err != nil {
300
309
return err
301
310
}
0 commit comments