From f6f5916b50c654f6d427e82ef522b74f5caff7f7 Mon Sep 17 00:00:00 2001 From: Rohan Chaturvedi Date: Tue, 23 Apr 2024 15:02:56 +0530 Subject: [PATCH] fix: set correct sse context in personal secret serializer (#237) --- backend/api/serializers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/api/serializers.py b/backend/api/serializers.py index b744cc0ca..09052c756 100644 --- a/backend/api/serializers.py +++ b/backend/api/serializers.py @@ -112,7 +112,7 @@ def get_override(self, obj): secret=obj, user=org_member ) return PersonalSecretSerializer( - personal_secret, context={"sse": True} + personal_secret, context={"sse": self.context.get("sse")} ).data except PersonalSecret.DoesNotExist: return None