Skip to content

Commit

Permalink
fix: set correct sse context in personal secret serializer (#237)
Browse files Browse the repository at this point in the history
  • Loading branch information
rohan-chaturvedi authored Apr 23, 2024
1 parent b411c40 commit f6f5916
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/api/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f6f5916

Please sign in to comment.