Skip to content

Commit

Permalink
fix(api): update icon do not need to load all workflow (#4608)
Browse files Browse the repository at this point in the history
  • Loading branch information
sguiheux authored and richardlt committed Sep 23, 2019
1 parent a357e02 commit 9f96e5e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion engine/api/workflow.go
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,9 @@ func (api *API) putWorkflowIconHandler() service.Handler {
return sdk.ErrIconBadSize
}

wf, err := workflow.Load(ctx, api.mustDB(), api.Cache, p, name, deprecatedGetUser(ctx), workflow.LoadOptions{})
wf, err := workflow.Load(ctx, api.mustDB(), api.Cache, p, name, deprecatedGetUser(ctx), workflow.LoadOptions{
Minimal: true,
})
if err != nil {
return err
}
Expand Down

0 comments on commit 9f96e5e

Please sign in to comment.