diff --git a/src/Appwrite/Platform/Workers/Messaging.php b/src/Appwrite/Platform/Workers/Messaging.php index dda96a01dc..bd4d9afede 100644 --- a/src/Appwrite/Platform/Workers/Messaging.php +++ b/src/Appwrite/Platform/Workers/Messaging.php @@ -56,7 +56,7 @@ class Messaging extends Action $payload = $message->getPayload() ?? []; if (empty($payload['project'])) { - Console::error('Project not found'); + throw new Exception('Project not set in payload'); return; }