mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 15:03:25 +00:00
change column webhook_unactivate to webhook_active
This commit is contained in:
@@ -87,7 +87,14 @@ class patch_415PHRAS3555 implements patchInterface
|
||||
|
||||
/** @var ApiApplication $thirdPartyApplication */
|
||||
foreach ($thirdPartyApplications as $thirdPartyApplication) {
|
||||
// retro compatibility with the older listen webhook
|
||||
$thirdPartyApplication->setListenedEvents($listenedEvents);
|
||||
|
||||
if (!empty($thirdPartyApplication->getWebhookUrl())) {
|
||||
// make webhook active if webhook_url exist
|
||||
$thirdPartyApplication->setWebhookActive(true);
|
||||
}
|
||||
|
||||
$em->persist($thirdPartyApplication);
|
||||
|
||||
$creator = $thirdPartyApplication->getCreator();
|
||||
|
Reference in New Issue
Block a user