1
0
Fork 0
mirror of synced 2024-07-04 06:00:53 +12:00
This commit is contained in:
shimon 2024-01-30 13:29:15 +02:00
parent 13a879c274
commit bfe042dc3e

View file

@ -59,13 +59,17 @@ class Messaging extends Action
{
$payload = $message->getPayload() ?? [];
if (empty($payload)) {
throw new Exception('Missing payload');
}
if (empty($payload['project'])) {
throw new Exception('Project not set in payload');
}
$project = new Document($payload['project'] ?? []);
Console::log($project->getId());
Console::log('Project: ' . $project->getId());
$denyList = App::getEnv('_APP_SMS_PROJECTS_DENY_LIST', '');
$denyList = explode(',', $denyList);