chore: refactor

This commit is contained in:
im-adithya
2023-12-07 14:29:18 +05:30
parent e681e69fa2
commit d3208f2bb1
25 changed files with 41 additions and 77 deletions

View File

@@ -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)