Skip to content

Commit

Permalink
cr feedback: change to orValue(null)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxcold committed Sep 12, 2024
1 parent 9b097a0 commit a0ebcbb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ program: |
}
}.encode_json()
).do_request().as(resp, resp.StatusCode == 200 ?
bytes(resp.Body).decode_json().as(body, has(body.?data.configurationFindings.nodes) && body.data.configurationFindings.nodes != null ?
bytes(resp.Body).decode_json().as(body, body.?data.configurationFindings.nodes.orValue(null) != null ?
{
"events": body.data.configurationFindings.nodes.map(e, {
"message": e.encode_json(),
Expand Down
2 changes: 1 addition & 1 deletion packages/wiz/data_stream/issue/agent/stream/cel.yml.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ program: |
}
}.encode_json()
).do_request().as(resp, resp.StatusCode == 200 ?
bytes(resp.Body).decode_json().as(body, has(body.?data.issues.nodes) && body.data.issues.nodes != null ?
bytes(resp.Body).decode_json().as(body, body.?data.issues.nodes.orValue(null) != null ?
{
"events": body.data.issues.nodes.map(e, {
"message": e.encode_json(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ program: |
}
}.encode_json()
).do_request().as(resp, resp.StatusCode == 200 ?
bytes(resp.Body).decode_json().as(body, has(body.?data.vulnerabilityFindings.nodes) && body.data.vulnerabilityFindings.nodes != null ?
bytes(resp.Body).decode_json().as(body, body.?data.vulnerabilityFindings.nodes.orValue(null) != null ?
{
"events": body.data.vulnerabilityFindings.nodes.map(e, {
"message": e.encode_json(),
Expand Down

0 comments on commit a0ebcbb

Please sign in to comment.