We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cb49365 commit 66112dcCopy full SHA for 66112dc
1 file changed
src/Endpoints/EmailEndpoint.php
@@ -217,6 +217,11 @@ public function send(): array
217
$headers['Idempotency-Key'] = $this->idempotencyKey;
218
}
219
220
- return $this->httpClient->post('/v1/send', $this->payload, $headers);
+ $result = $this->httpClient->post('/v1/send', $this->payload, $headers);
221
+
222
+ $this->payload = [];
223
+ $this->idempotencyKey = null;
224
225
+ return $result;
226
227
0 commit comments