From 0eb8667f9017f20ef9eaf23920cb27dde8da1f60 Mon Sep 17 00:00:00 2001 From: Cheikh Gueye Wane Date: Fri, 13 Dec 2024 08:47:01 +0000 Subject: [PATCH] fix(Datasets): snake case for datasetlink id (#873) --- hexa/datasets/schema/mutations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hexa/datasets/schema/mutations.py b/hexa/datasets/schema/mutations.py index 00c081911..15787620f 100644 --- a/hexa/datasets/schema/mutations.py +++ b/hexa/datasets/schema/mutations.py @@ -296,7 +296,7 @@ def resolve_pin_dataset(_, info, **kwargs): mutation_input = kwargs["input"] try: - link = DatasetLink.objects.get(id=mutation_input["linkId"]) + link = DatasetLink.objects.get(id=mutation_input["link_id"]) if not request.user.has_perm("datasets.pin_dataset", link): raise PermissionDenied