Skip to content

Commit

Permalink
checkpoint
Browse files Browse the repository at this point in the history
Signed-off-by: Jeff Ortel <[email protected]>
  • Loading branch information
jortel committed Aug 9, 2024
1 parent 038b066 commit cd29930
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions binding/application.go
Original file line number Diff line number Diff line change
Expand Up @@ -338,12 +338,21 @@ func (h *Analysis) Create(commit, encoding, issues, deps string) (err error) {
return
}
r.Issues = api.Ref{ID: f.ID}
defer func() {
_ = file.Delete(f.ID)
}()
f, err = file.Post(deps)
if err != nil {
return
}
r.Dependencies = api.Ref{ID: f.ID}
defer func() {
_ = file.Delete(f.ID)
}()
path := Path(api.AppAnalysesRoot).Inject(Params{api.ID: h.appId})
err = h.client.Encoding(encoding).Post(path, r)
if err != nil {
return
}
return
}

0 comments on commit cd29930

Please sign in to comment.