From 4bd16862d2548e669a6c0d2e9784cff7b9136bc6 Mon Sep 17 00:00:00 2001 From: pasha1coil Date: Mon, 27 Nov 2023 12:10:13 +0300 Subject: [PATCH] fix returning ok and nil in sendreport controller --- internal/interface/controller/rest/history/history.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/interface/controller/rest/history/history.go b/internal/interface/controller/rest/history/history.go index a6878f9..8807d59 100644 --- a/internal/interface/controller/rest/history/history.go +++ b/internal/interface/controller/rest/history/history.go @@ -104,5 +104,5 @@ func (receiver *Controller) SendReport(ctx echo.Context) error { return errors.HTTP(ctx, err) } - return ctx.JSON(http.StatusOK, nil) + return ctx.NoContent(http.StatusOK) }