From da78543f3847a465305eb48e93de868d97c11e5e Mon Sep 17 00:00:00 2001 From: Nathan Freeman Date: Thu, 12 Sep 2024 11:17:57 -0500 Subject: [PATCH] Fix create group secret endpoint --- src/api/src/backend/views/GroupSecrets.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/src/backend/views/GroupSecrets.py b/src/api/src/backend/views/GroupSecrets.py index 39c4e297..6f9f3ac7 100644 --- a/src/api/src/backend/views/GroupSecrets.py +++ b/src/api/src/backend/views/GroupSecrets.py @@ -72,7 +72,7 @@ def post(self, request, group_id, *_, **__): return Forbidden(message="You do not have access to this group") # Fetch the secret - secret = Secret.object.filter( + secret = Secret.objects.filter( secret_id=secret_id, tenant_id=request.tenant_id, owner=request.username @@ -89,7 +89,7 @@ def post(self, request, group_id, *_, **__): return Conflict(message=f"A GroupSecret already exists with id '{group_secret_id}'") # Create group secret - group_secret = GroupSecret.object.create( + group_secret = GroupSecret.objects.create( id=group_secret_id, group=group, secret=secret