send X-Request-Id in header of every request (#7085)

This commit is contained in:
Prajwol Amatya
2023-09-06 16:07:53 +05:45
committed by GitHub
parent 8016d448fa
commit 0aa41d90c1
15 changed files with 86 additions and 65 deletions
+1 -1
View File
@@ -133,7 +133,7 @@ class EmailHelper {
$endTime = $currentTime + $waitTimeSec;
$mailBox = self::getMailBoxFromEmail($emailAddress);
while ($currentTime <= $endTime) {
$mailboxResponse = self::getMailboxInformation($mailBox);
$mailboxResponse = self::getMailboxInformation($mailBox, $xRequestId);
if (!empty($mailboxResponse) && \sizeof($mailboxResponse) >= $emailNumber) {
$mailboxId = $mailboxResponse[\sizeof($mailboxResponse) - $emailNumber]->id;
$response = self::getBodyOfAnEmailById($mailBox, $mailboxId, $xRequestId);