Skip to content

Commit

Permalink
Revert "remove process query"
Browse files Browse the repository at this point in the history
This reverts commit ed971d6.
  • Loading branch information
Thomas Fink authored and Thomas Fink committed Aug 9, 2024
1 parent ed971d6 commit 9d615f0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
1 change: 0 additions & 1 deletion .java-version

This file was deleted.

9 changes: 4 additions & 5 deletions zmsdb/src/Zmsdb/Mail.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,20 +57,19 @@ public function readList($resolveReferences = 1, $limit = 300, $order = 'ASC')
public function readResolvedReferences(\BO\Zmsentities\Schema\Entity $mail, $resolveReferences)
{
$multiPart = $this->readMultiPartByQueueId($mail->id);

$mail->addMultiPart($multiPart);
if (1 <= $resolveReferences) {
$processQuery = new \BO\Zmsdb\Process();
$authData = $processQuery->readAuthKeyByProcessId($mail->process['id']);
$mail->process = $processQuery
->readEntity(
$mail->process['id'],
resolveReferences: $resolveReferences - 1
$mail->process['id'],
is_array($authData) ? $authData['authKey'] : null,
$resolveReferences - 1
);
$mail->department = (new \BO\Zmsdb\Department())
->readEntity($mail->department['id'], $resolveReferences - 1);

}

return $mail;
}

Expand Down

0 comments on commit 9d615f0

Please sign in to comment.