Skip to content

Commit

Permalink
🚚(newsletter) rename newsletter subscription token attribute
Browse files Browse the repository at this point in the history
The attribute that stores the newletter subscription has been renamed in
Joanie.
It has been renamed here too for simplicity.
  • Loading branch information
kernicPanel committed Apr 4, 2024
1 parent 02a81f0 commit 8ebafc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fonzie/views/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def get(self, request, version, format=None):
)
if "newsletter_subscribed" in request.COOKIES:
# delete the cookie, as we only need it once, after registration
token.payload["has_subscribed_to_newsletter"] = (
token.payload["has_subscribed_to_commercial_newsletter"] = (
request.COOKIES.get("newsletter_subscribed") == "true"
)
response.delete_cookie("newsletter_subscribed")
Expand Down

0 comments on commit 8ebafc7

Please sign in to comment.