mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 09:28:40 +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);
|
$parsedPayload = $github->getEvent($event, $payload);
|
||||||
$providerInstallationId = $parsedPayload["installationId"] ?? '';
|
$providerInstallationId = $parsedPayload["installationId"] ?? '';
|
||||||
|
|
||||||
|
|
||||||
$repository = Authorization::skip(fn () => $dbForPlatform->findOne('repositories', [
|
$repository = Authorization::skip(fn () => $dbForPlatform->findOne('repositories', [
|
||||||
Query::equal('installationId', [$providerInstallationId]),
|
Query::equal('installationId', [$providerInstallationId]),
|
||||||
]));
|
]));
|
||||||
|
|
||||||
$projectId = $repository->getAttribute('projectId');
|
$projectId = $repository->getAttribute('projectId');
|
||||||
var_dump($projectId);
|
|
||||||
|
var_dump([
|
||||||
|
'providerInstallationId' => $providerInstallationId,
|
||||||
|
'repository' => $repository,
|
||||||
|
'projectId' => $projectId,
|
||||||
|
]);
|
||||||
// if (empty($projectId)) {
|
// if (empty($projectId)) {
|
||||||
// throw new Exception(Exception::GENERAL_ACCESS_FORBIDDEN, "Project was not found");
|
// throw new Exception(Exception::GENERAL_ACCESS_FORBIDDEN, "Project was not found");
|
||||||
// }
|
// }
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue