fix http status header

This commit is contained in:
kiwiidb
2022-12-09 15:53:24 +01:00
parent 68cc84a33b
commit df7a02a7dc

View File

@@ -78,7 +78,7 @@ func (controller *KeySendController) KeySend(c echo.Context) error {
result, err := controller.SingleKeySend(c, &reqBody, userID)
if err != nil {
c.Logger().Errorf("Failed to send keysend: %s", err.Message)
return c.JSON(err.Code, err)
return c.JSON(http.StatusInternalServerError, err)
}
return c.JSON(http.StatusOK, result)
}