mirror of
https://github.com/hanzo-fi/payments.git
synced 2026-10-30 20:31:20 +00:00
16 lines
346 B
Go
16 lines
346 B
Go
package services
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/formancehq/payments/internal/models"
|
|
)
|
|
|
|
func (s *Service) ConnectorsReset(ctx context.Context, connectorID models.ConnectorID) (models.Task, error) {
|
|
task, err := s.engine.ResetConnector(ctx, connectorID)
|
|
if err != nil {
|
|
return models.Task{}, handleEngineErrors(err)
|
|
}
|
|
return task, nil
|
|
}
|