mirror of
https://github.com/getAlby/lndhub.go.git
synced 2026-02-23 13:54:25 +01:00
fix http status header
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user