1
0
Fork 0
mirror of synced 2024-07-03 21:50:34 +12:00

Merge pull request #6966 from appwrite/fix-mails-worker

fix: mails worker using TLS
This commit is contained in:
Christy Jacob 2023-10-20 16:52:57 +04:00 committed by GitHub
commit 4e0cc1b297
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,6 +5,7 @@ namespace Appwrite\Platform\Workers;
use Appwrite\Template\Template;
use Exception;
use PHPMailer\PHPMailer\PHPMailer;
use Swoole\Runtime;
use Utopia\App;
use Utopia\CLI\Console;
use Utopia\Platform\Action;
@ -39,7 +40,7 @@ class Mails extends Action
*/
public function action(Message $message, Registry $register): void
{
Runtime::setHookFlags(SWOOLE_HOOK_ALL ^ SWOOLE_HOOK_TCP);
$payload = $message->getPayload() ?? [];
if (empty($payload)) {