mirror of
https://github.com/hanzo-fi/payments.git
synced 2026-10-30 20:31:20 +00:00
17 lines
381 B
Go
17 lines
381 B
Go
package services
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/formancehq/payments/internal/models"
|
|
)
|
|
|
|
func (s *Service) SchedulesGet(ctx context.Context, id string, connectorID models.ConnectorID) (*models.Schedule, error) {
|
|
schedule, err := s.storage.SchedulesGet(ctx, id, connectorID)
|
|
if err != nil {
|
|
return nil, newStorageError(err, "cannot get schedule")
|
|
}
|
|
|
|
return schedule, nil
|
|
}
|