mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 09:28:40 +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 = [];
|
$this->errors = [];
|
||||||
$payload = $message->getPayload() ?? [];
|
$payload = $message->getPayload() ?? [];
|
||||||
|
|
||||||
var_dump([
|
|
||||||
'id' => $project->getId(),
|
|
||||||
'region' => $project->getAttribute('region'),
|
|
||||||
|
|
||||||
]);
|
|
||||||
|
|
||||||
if (empty($payload)) {
|
if (empty($payload)) {
|
||||||
throw new Exception('Missing payload');
|
throw new Exception('Missing payload');
|
||||||
}
|
}
|
||||||
|
var_dump($project);
|
||||||
$events = $payload['events'];
|
$events = $payload['events'];
|
||||||
$webhookPayload = json_encode($payload['payload']);
|
$webhookPayload = json_encode($payload['payload']);
|
||||||
$user = new Document($payload['user'] ?? []);
|
$user = new Document($payload['user'] ?? []);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue