diff --git a/app/controllers/api/projects.php b/app/controllers/api/projects.php index cd2e0435f5..893300d9b2 100644 --- a/app/controllers/api/projects.php +++ b/app/controllers/api/projects.php @@ -728,7 +728,7 @@ App::put('/v1/projects/:projectId/webhooks/:webhookId') ]); if ($webhook === false || $webhook->isEmpty()) { - throw new Exception('Webhook not found', 404), Exception::WEBHOOK_NOT_FOUND; + throw new Exception('Webhook not found', 404, Exception::WEBHOOK_NOT_FOUND); } $webhook