From e7f20a65823a0729763cfae21147267b24f6a3c2 Mon Sep 17 00:00:00 2001 From: Laurent Date: Mon, 15 Jan 2024 16:55:48 +0100 Subject: [PATCH] more --- subscriptions/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subscriptions/views.py b/subscriptions/views.py index 8916073..9ce878e 100644 --- a/subscriptions/views.py +++ b/subscriptions/views.py @@ -24,13 +24,13 @@ def test(request): @csrf_exempt def app_store_webhook(request): - data = request.body.decode('utf-8') + decoded = request.body.decode('utf-8') # Parse the JSON payload fulljson = json.loads(data) # signedPayload = fulljson['signedPayload'] try: - data = asn2.parse(fulljson) + data = asn2.parse(decoded) type = data['notificationType'] notification = ASSNotification(