mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-29 16:15:04 +00:00
fix: Exception in dry-run with Gandi Provider
This commit is contained in:
@@ -63,15 +63,15 @@ final readonly class ProcessDomainTriggerHandler
|
||||
$isDebug = $this->kernel->isDebug();
|
||||
|
||||
if (ConnectorProvider::OVH === $connector->getProvider()) {
|
||||
$ovh = new OvhConnector($connector->getAuthData());
|
||||
$ovh->orderDomain($domain, $isDebug);
|
||||
$provider = new OvhConnector($connector->getAuthData());
|
||||
} elseif (ConnectorProvider::GANDI === $connector->getProvider()) {
|
||||
$gandi = new GandiConnector($connector->getAuthData(), $this->client);
|
||||
$gandi->orderDomain($domain, $isDebug);
|
||||
$provider = new GandiConnector($connector->getAuthData(), $this->client);
|
||||
} else {
|
||||
throw new \Exception('Unknown provider');
|
||||
}
|
||||
|
||||
$provider->orderDomain($domain, $isDebug);
|
||||
|
||||
$this->sendEmailDomainOrdered($domain, $connector, $watchList->getUser());
|
||||
} catch (\Throwable) {
|
||||
$this->logger->warning('Unable to complete purchase. An error message is sent to user {username}.', [
|
||||
|
||||
Reference in New Issue
Block a user