Skip to content

Commit

Permalink
ok mail boxes are hard let's see if this does it
Browse files Browse the repository at this point in the history
  • Loading branch information
alnutile committed Aug 12, 2024
1 parent e309537 commit ba3e1dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Domains/Sources/EmailSource.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function handle(Source $source): void
$key = md5($this->mailDto->getContent());

if ($this->skip($this->source, $key)) {
$this->mailDto->email_message->delete();
$this->mailDto->email_message?->delete();

continue;
}
Expand Down Expand Up @@ -112,7 +112,7 @@ public function handle(Source $source): void
->allowFailures()
->dispatch();

$this->mailDto->email_message->delete();
$this->mailDto->email_message?->delete();
}

}
Expand Down
1 change: 1 addition & 0 deletions tests/Feature/EmailSourceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ public function test_repeat_tasks()
'subject' => 'This is it',
'header' => 'This is header',
'body' => 'Test',
'email_message' => null,
]);

Client::shouldReceive('getEmails')->once()->andReturn([
Expand Down

0 comments on commit ba3e1dc

Please sign in to comment.