Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

Commit

Permalink
fix: Check for correlation ID for uploads being null (#89)
Browse files Browse the repository at this point in the history
* fix: Check for correlation ID for uploads being null

* fix: Whitepsace
  • Loading branch information
wadedvsa authored Mar 4, 2024
1 parent a2cfa40 commit c141574
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,10 @@ public function handleCommand(CommandInterface $command): Result
$message = $this->generateAndSaveMessage($command);
$updatedTask = $this->updateTaskDescriptionAndActionDate($command);
$sendEmailResult = $this->sendEmail($command);
$this->assignUploadsToMessage($message, $command->getCorrelationId());

if ($command->getCorrelationId() !== null) {
$this->assignUploadsToMessage($message, $command->getCorrelationId());
}

$result = new Result();

Expand Down

0 comments on commit c141574

Please sign in to comment.