mirror of
https://github.com/hanzo-fi/payments.git
synced 2026-10-30 20:31:20 +00:00
17 lines
367 B
Go
17 lines
367 B
Go
package services
|
|
|
|
import (
|
|
"context"
|
|
"encoding/json"
|
|
|
|
"github.com/formancehq/payments/internal/models"
|
|
)
|
|
|
|
func (s *Service) ConnectorsConfigUpdate(ctx context.Context, connectorID models.ConnectorID, rawConfig json.RawMessage) error {
|
|
err := s.engine.UpdateConnector(ctx, connectorID, rawConfig)
|
|
if err != nil {
|
|
return handleEngineErrors(err)
|
|
}
|
|
return nil
|
|
}
|