Skip to content

Commit

Permalink
remove the blocked email
Browse files Browse the repository at this point in the history
  • Loading branch information
Koen Eelen committed Sep 19, 2024
1 parent 251ea83 commit 2c4edfb
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 24 deletions.
7 changes: 0 additions & 7 deletions app/Domain/Mail/MailManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,6 @@ public function sendIntegrationActivatedMail(IntegrationActivated $event): void
$this->sendMail($integration, $this->templates->getOrFail(TemplateName::INTEGRATION_ACTIVATED->value));
}

public function sendIntegrationBlockedMail(IntegrationBlocked $event): void
{
$integration = $this->integrationRepository->getById($event->id);

$this->sendMail($integration, $this->templates->getOrFail(TemplateName::INTEGRATION_BLOCKED->value));
}

public function sendIntegrationActivationRequestMail(IntegrationActivationRequested $event): void
{
$integration = $this->integrationRepository->getById($event->id);
Expand Down
1 change: 0 additions & 1 deletion app/Mails/Template/TemplateName.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ enum TemplateName: string
{
case INTEGRATION_CREATED = 'integration_created';
case INTEGRATION_ACTIVATION_REMINDER = 'integration_activation_reminder';
case INTEGRATION_BLOCKED = 'integration_blocked';
case INTEGRATION_ACTIVATED = 'integration_activated';
case INTEGRATION_ACTIVATION_REQUEST = 'integration_activation_request';
case INTEGRATION_DELETED = 'integration_deleted';
Expand Down
5 changes: 0 additions & 5 deletions config/mailjet.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,6 @@
'enabled' => true,
'subject' => 'Welcome to Publiq platform - Let\'s get you started!',
],
TemplateName::INTEGRATION_BLOCKED->value => [
'id' => env('MAILJET_TEMPLATE_INTEGRATION_BLOCKED'),
'enabled' => false,
'subject' => 'Publiq platform - Integration blocked',
],
TemplateName::INTEGRATION_ACTIVATED->value => [
'id' => env('MAILJET_TEMPLATE_INTEGRATION_ACTIVATED'),
'enabled' => true,
Expand Down
11 changes: 0 additions & 11 deletions tests/Domain/Mail/MailManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -197,12 +197,6 @@ public static function mailDataProvider(): array
'templateId' => self::TEMPLATE_ACTIVATED_ID,
'subject' => 'Publiq platform - Integration activated',
],
TemplateName::INTEGRATION_BLOCKED->value => [
'event' => new IntegrationBlocked(Uuid::fromString(self::INTEGRATION_ID)),
'method' => 'sendIntegrationBlockedMail',
'templateId' => self::TEMPLATE_BLOCKED_ID,
'subject' => 'Publiq platform - Integration blocked',
],
TemplateName::INTEGRATION_ACTIVATION_REQUEST->value => [
'event' => new IntegrationActivationRequested(Uuid::fromString(self::INTEGRATION_ID)),
'method' => 'sendIntegrationActivationRequestMail',
Expand Down Expand Up @@ -234,11 +228,6 @@ private function getTemplateConfig(): array
'enabled' => true,
'subject' => 'Welcome to Publiq platform - Let\'s get you started!',
],
TemplateName::INTEGRATION_BLOCKED->value => [
'id' => self::TEMPLATE_BLOCKED_ID,
'enabled' => true,
'subject' => 'Publiq platform - Integration blocked',
],
TemplateName::INTEGRATION_ACTIVATED->value => [
'id' => self::TEMPLATE_ACTIVATED_ID,
'enabled' => true,
Expand Down

0 comments on commit 2c4edfb

Please sign in to comment.