mirror of
https://github.com/getAlby/lndhub.go.git
synced 2025-12-21 22:54:48 +01:00
Add DB constraints to check for user balances
This commit is contained in:
@@ -79,7 +79,8 @@ func (controller *PayInvoiceController) PayInvoice(c echo.Context) error {
|
||||
|
||||
entry, err := controller.svc.PayInvoice(invoice)
|
||||
if err != nil {
|
||||
c.Logger().Errorf("Failed: %v", err)
|
||||
c.Logger().Errorf("Payment failed: %v", err)
|
||||
// TODO: sentry notification
|
||||
return c.JSON(http.StatusBadRequest, echo.Map{
|
||||
"error": true,
|
||||
"code": 10,
|
||||
|
||||
Reference in New Issue
Block a user