From f2e86b091419a482877370a8af495f61907cb396 Mon Sep 17 00:00:00 2001 From: Harold Blankenship <36673698+hblankenship@users.noreply.github.com> Date: Fri, 15 Nov 2024 16:35:43 -0600 Subject: [PATCH] Update dojo/api_v2/views.py Same Co-authored-by: Charles Neill <1749665+cneill@users.noreply.github.com> --- dojo/api_v2/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dojo/api_v2/views.py b/dojo/api_v2/views.py index 00a6da1b556..6caea557471 100644 --- a/dojo/api_v2/views.py +++ b/dojo/api_v2/views.py @@ -1689,7 +1689,7 @@ def process_post(self: object, data: dict): def process_patch(self: object, data: dict): product = Product.objects.filter(id=data.get("product")).first() finding = Finding.objects.filter(id=data.get("finding")).first() - endpoint = Finding.objects.filter(id=data.get("endpoint")).first() + endpoint = Endpoint.objects.filter(id=data.get("endpoint")).first() metalist = data.get("metadata") for metadata in metalist: dojometa = DojoMeta.objects.filter(product=product, finding=finding, endpoint=endpoint, name=metadata.get("name"))