From 0ac62747122dfc23ad778327177749f764aa5f61 Mon Sep 17 00:00:00 2001 From: Chaim Lev-Ari Date: Tue, 11 May 2021 01:59:42 +0300 Subject: [PATCH] fix(docker/services): create a service webhook (#5052) --- app/docker/views/services/create/createServiceController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/docker/views/services/create/createServiceController.js b/app/docker/views/services/create/createServiceController.js index 6e766602d..6aa70264c 100644 --- a/app/docker/views/services/create/createServiceController.js +++ b/app/docker/views/services/create/createServiceController.js @@ -499,7 +499,7 @@ angular.module('portainer.docker').controller('CreateServiceController', [ const resourceControl = data.Portainer.ResourceControl; const userId = Authentication.getUserDetails().ID; const rcPromise = ResourceControlService.applyResourceControl(userId, accessControlData, resourceControl); - const webhookPromise = $q.when(endpoint.Type !== 4 && $scope.formValues.Webhook && WebhookService.createServiceWebhook(serviceId, endpoint.ID)); + const webhookPromise = $q.when(endpoint.Type !== 4 && $scope.formValues.Webhook && WebhookService.createServiceWebhook(serviceId, endpoint.Id)); return $q.all([rcPromise, webhookPromise]); }) .then(function success() {