mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Added response model payload as webhook payload
This commit is contained in:
1 parent
9bd3e4dcbd
commit
fd93c61009
1 file changed
+2
-1
@@ -274,11 +274,12 @@ App::shutdown(function ($utopia, $request, $response, $project, $webhooks, $audi
|
||||
/** @var bool $mode */
|
||||
|
||||
if (!empty($functions->getParam('event'))) {
|
||||
$functions->setParam('payload', $webhooks->getParam('payload'));
|
||||
$functions->setParam('payload', $response->getPayload());
|
||||
$functions->trigger();
|
||||
}
|
||||
|
||||
if (!empty($webhooks->getParam('event'))) {
|
||||
$webhooks->setParam('payload', $response->getPayload());
|
||||
$webhooks->trigger();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user