Skip to content

Code monitors: fix error for nil results

Administrator requested to merge cc/fix-cm-error into main

Created by: camdencheek

The DB requires that the results column is non-null, but this fails when we have an empty array. Elsewhere, we just check for nilness and instantiate an empty array instead, but I missed this spot.

This was causing runs with no results to show errors. Runs with results will still work as expected.

Test plan

Added a test to cover regressions.

Merge request reports

Loading