mirror of
https://github.com/getAlby/lndhub.go.git
synced 2025-12-20 14:14:47 +01:00
User service for all user related functions
This commit is contained in:
@@ -20,7 +20,7 @@ func NewBalanceController(svc *service.LndhubService) *BalanceController {
|
||||
// Balance : Balance Controller
|
||||
func (controller *BalanceController) Balance(c echo.Context) error {
|
||||
userId := c.Get("UserID").(int64)
|
||||
balance, err := controller.svc.CurrentBalance(context.TODO(), userId)
|
||||
balance, err := controller.svc.CurrentUserBalance(context.TODO(), userId)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user