Files
payments/internal/api/services/pools_remove_account.go

14 lines
319 B
Go

package services
import (
"context"
"github.com/formancehq/payments/internal/models"
"github.com/google/uuid"
)
func (s *Service) PoolsRemoveAccount(ctx context.Context, id uuid.UUID, accountID models.AccountID) error {
err := s.engine.RemoveAccountFromPool(ctx, id, accountID)
return handleEngineErrors(err)
}