mirror of
https://github.com/getAlby/lndhub.go.git
synced 2025-12-19 05:35:16 +01:00
chore: refactor
This commit is contained in:
@@ -37,7 +37,7 @@ func (controller *AddInvoiceController) AddInvoice(c echo.Context) error {
|
||||
|
||||
func AddInvoice(c echo.Context, svc *service.LndhubService, userID int64) error {
|
||||
var body AddInvoiceRequestBody
|
||||
limits := svc.GetLimitsFromContext(c)
|
||||
limits := svc.GetLimits(c)
|
||||
|
||||
if err := c.Bind(&body); err != nil {
|
||||
c.Logger().Errorf("Failed to load addinvoice request body: %v", err)
|
||||
|
||||
Reference in New Issue
Block a user