Skip to content

Commit

Permalink
Merge pull request #2318 from opengovern/fix-tasks
Browse files Browse the repository at this point in the history
fix: handle empty result in task
  • Loading branch information
artaasadi authored Dec 27, 2024
2 parents 8bb1605 + b34f299 commit 74121f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/tasks/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func (r *httpRoutes) runTask(ctx echo.Context) error {
r.logger.Error("failed to set params", zap.Error(err))
return echo.NewHTTPError(http.StatusInternalServerError, "failed to set params")
}
err = run.Result.Set([]byte(""))
err = run.Result.Set([]byte("{}"))
if err != nil {
r.logger.Error("failed to set results", zap.Error(err))
return echo.NewHTTPError(http.StatusInternalServerError, "failed to set results")
Expand Down

0 comments on commit 74121f6

Please sign in to comment.