Skip to content

Commit

Permalink
Fix Postmark response
Browse files Browse the repository at this point in the history
  • Loading branch information
JonoB committed May 8, 2024
1 parent 669d1a7 commit ef07dea
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Adapters/PostmarkMailAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

use Illuminate\Support\Arr;
use Postmark\Models\DynamicResponseModel;
use Postmark\Models\PostmarkResponse;
use Postmark\PostmarkClient;
use Sendportal\Base\Services\Messages\MessageTrackingOptions;

Expand Down Expand Up @@ -48,8 +49,8 @@ protected function resolveClient(): PostmarkClient
return $this->client;
}

protected function resolveMessageId(DynamicResponseModel $result): string
protected function resolveMessageId(PostmarkResponse $result): string
{
return (string)$result->__get('MessageID');
return $result->getMessageID();
}
}

0 comments on commit ef07dea

Please sign in to comment.