mirror of
https://github.com/appwrite/appwrite
synced 2026-05-22 00:18:25 +00:00
payload debug
This commit is contained in:
parent
39585d0438
commit
87de071f53
1 changed files with 7 additions and 1 deletions
|
|
@ -891,12 +891,18 @@ App::post('/v1/vcs/github/events')
|
|||
$parsedPayload = $github->getEvent($event, $payload);
|
||||
$providerInstallationId = $parsedPayload["installationId"] ?? '';
|
||||
|
||||
|
||||
$repository = Authorization::skip(fn () => $dbForPlatform->findOne('repositories', [
|
||||
Query::equal('installationId', [$providerInstallationId]),
|
||||
]));
|
||||
|
||||
$projectId = $repository->getAttribute('projectId');
|
||||
var_dump($projectId);
|
||||
|
||||
var_dump([
|
||||
'providerInstallationId' => $providerInstallationId,
|
||||
'repository' => $repository,
|
||||
'projectId' => $projectId,
|
||||
]);
|
||||
// if (empty($projectId)) {
|
||||
// throw new Exception(Exception::GENERAL_ACCESS_FORBIDDEN, "Project was not found");
|
||||
// }
|
||||
|
|
|
|||
Loading…
Reference in a new issue