change column webhook_unactivate to webhook_active

This commit is contained in:
aynsix
2021-12-06 14:10:50 +03:00
parent cf1f8f4679
commit a4bc368fdd
2 changed files with 14 additions and 7 deletions

View File

@@ -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();