diff --git a/src/api/src/backend/views/GroupSecrets.py b/src/api/src/backend/views/GroupSecrets.py index d4487ec8..0aa57413 100644 --- a/src/api/src/backend/views/GroupSecrets.py +++ b/src/api/src/backend/views/GroupSecrets.py @@ -76,7 +76,7 @@ def post(self, request, group_id, *_, **__): id=secret_id, tenant_id=request.tenant_id, owner=request.username - ) + ).first() if secret == None: return NotFound(message=f"No secret found with id '{secret_id}'")