mirror of
https://github.com/hanzo-fi/payments.git
synced 2026-10-30 20:31:20 +00:00
18 lines
335 B
Go
18 lines
335 B
Go
package services
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/formancehq/payments/internal/models"
|
|
"github.com/google/uuid"
|
|
)
|
|
|
|
func (s *Service) PoolsGet(ctx context.Context, id uuid.UUID) (*models.Pool, error) {
|
|
p, err := s.storage.PoolsGet(ctx, id)
|
|
if err != nil {
|
|
return nil, newStorageError(err, "cannot get pool")
|
|
}
|
|
|
|
return p, nil
|
|
}
|