User service for all user related functions

This commit is contained in:
Michael Bumann
2022-01-19 21:16:20 +01:00
parent 818dd78c6f
commit 7bd74a69d8
5 changed files with 79 additions and 68 deletions

View File

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