Skip to content

Commit

Permalink
fix: Handle email attachments correctly
Browse files Browse the repository at this point in the history
When the tickets were created from emails asynchronously, the
`createdBy` attribute wasn't set to the message document.
The database refused with a "cannot be null" error.

It worked when collecting emails manually from the interface because the
user was connected.
  • Loading branch information
marien-probesys committed Oct 11, 2023
1 parent edbc252 commit c558ef3
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ public function __invoke(CreateTicketsFromMailboxEmails $message): void
}

$messageDocument->setMessage($message);
$messageDocument->setCreatedBy($requester);
$this->messageDocumentRepository->save($messageDocument, true);
}

Expand Down

0 comments on commit c558ef3

Please sign in to comment.