Check for the existance of a UnifiedJobTemplate with the same webhook GUID

instead of trying (incorrectly) to be specific about the JT/WFJT type.
This commit is contained in:
Jeff Bradberry 2019-09-30 15:26:49 -04:00
parent 204c05aa3b
commit d549877ebd

View File

@ -134,7 +134,7 @@ class WebhookReceiverBase(APIView):
status_api = self.get_event_status_api()
kwargs = {
('job_template_id' if isinstance(obj, JobTemplate) else 'workflow_job_template_id'): obj.id,
'unified_job_template_id': obj.id,
'webhook_service': obj.webhook_service,
'webhook_guid': event_guid,
}