Skip to content

Commit

Permalink
need to pass in empty context to query
Browse files Browse the repository at this point in the history
  • Loading branch information
chrispatrick committed Mar 7, 2024
1 parent b014ca3 commit df96916
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion policy/policy_handler/mocks/base_image_details.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ func mockBaseImageDetails(ctx context.Context, req skill.RequestContext, sb *typ

var queryResponse BaseImagesByDigestResponse

queryVariables := map[string]interface{}{"digest": baseImageDigest}
queryVariables := map[string]interface{}{
"digest": baseImageDigest,
"context": struct{}{}}
_, err = ds.Query(ctx, baseImagesByDigestQueryName, baseImagesByDigestQuery, queryVariables, &queryResponse)
if err != nil {
return ImageDetailsByDigestResponse{}, err
Expand Down

0 comments on commit df96916

Please sign in to comment.