From e315d0ec1c0a7b254706aeec767209e8612e284f Mon Sep 17 00:00:00 2001 From: Iwona Just Date: Wed, 27 Nov 2024 10:25:55 +0000 Subject: [PATCH] missed from pr#63 --- src/controllers/WebhooksController.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/controllers/WebhooksController.php b/src/controllers/WebhooksController.php index b1c79d6..92848f1 100644 --- a/src/controllers/WebhooksController.php +++ b/src/controllers/WebhooksController.php @@ -112,11 +112,12 @@ public function actionEdit(): YiiResponse $webhookSigningSecret = $webhookRecord->webhookSigningSecret; if (!empty($webhookId)) { + $parsedWebhookId = App::parseEnv($webhookRecord->webhookId); try { - $response = $this->getWebhookInfo($plugin, $webhookId); + $response = $this->getWebhookInfo($plugin, $parsedWebhookId); $webhookInfo = $response->toArray(); } catch (\Exception $e) { - Craft::error("Couldn't retrieve webhook with ID $webhookId: " . $e->getMessage()); + Craft::error("Couldn't retrieve webhook with ID $parsedWebhookId: " . $e->getMessage()); $hasWebhook = false; } } else {