Skip to content

Commit

Permalink
updated error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
adranwit committed Aug 16, 2024
1 parent 5fa465d commit f3f8dac
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions service/operator/async.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,16 +77,16 @@ func (s *Service) updateJobStatusDone(ctx context.Context, aComponent *repositor
return aComponent.Async.UpdateJob(ctx, job)
}

var uriParameter = state.NewParameter("uri", state.NewQueryLocation(""))
var queryParameter = state.NewParameter("query", state.NewQueryLocation(""))

func (s *Service) buildJob(ctx context.Context, aSession *session.Session, aState *structology.State, aComponent *repository.Component, matchKey string, options *session.Options) (*async.Job, error) {
asyncModule := aComponent.Async

uri := struct {
query := struct {
URI string `parameters:"kind=query"`
}{}
_ = aSession.Into(ctx, &uri)
_ = aSession.SetCacheValue(ctx, uriParameter, uri.URI)
_ = aSession.Into(ctx, &query)
_ = aSession.SetCacheValue(ctx, queryParameter, query.URI)

encodedState, err := aSession.MarshalJSON()
if err != nil {
Expand Down

0 comments on commit f3f8dac

Please sign in to comment.