mirror of
https://github.com/appwrite/appwrite
synced 2026-05-22 00:18:25 +00:00
debug
This commit is contained in:
parent
921b9154eb
commit
52a73856bc
1 changed files with 1 additions and 5 deletions
|
|
@ -54,16 +54,12 @@ class Webhooks extends Action
|
|||
$this->errors = [];
|
||||
$payload = $message->getPayload() ?? [];
|
||||
|
||||
var_dump([
|
||||
'id' => $project->getId(),
|
||||
'region' => $project->getAttribute('region'),
|
||||
|
||||
]);
|
||||
|
||||
if (empty($payload)) {
|
||||
throw new Exception('Missing payload');
|
||||
}
|
||||
|
||||
var_dump($project);
|
||||
$events = $payload['events'];
|
||||
$webhookPayload = json_encode($payload['payload']);
|
||||
$user = new Document($payload['user'] ?? []);
|
||||
|
|
|
|||
Loading…
Reference in a new issue