From cd716e1b436dc8df8df27cf846f89a6d6c994f4a Mon Sep 17 00:00:00 2001 From: ndu Date: Wed, 15 Jan 2025 14:25:44 +0100 Subject: [PATCH 1/2] fix: deploy fix --- server/apps/newsletter/views.py | 1 - 1 file changed, 1 deletion(-) diff --git a/server/apps/newsletter/views.py b/server/apps/newsletter/views.py index 2dd9af0..d52947f 100644 --- a/server/apps/newsletter/views.py +++ b/server/apps/newsletter/views.py @@ -3,7 +3,6 @@ from .models import Subscriber from django.views.decorators.csrf import csrf_exempt from django.db import IntegrityError, transaction -from .tasks import sync_subscriber_to_beehiiv import logging logger = logging.getLogger(__name__) From 9eaccd43efee84c8cade1713f8515f15cc11299e Mon Sep 17 00:00:00 2001 From: ndu Date: Wed, 15 Jan 2025 14:30:21 +0100 Subject: [PATCH 2/2] fix: deploy fix --- server/apps/newsletter/views.py | 1 - 1 file changed, 1 deletion(-) diff --git a/server/apps/newsletter/views.py b/server/apps/newsletter/views.py index d52947f..e0e5f5a 100644 --- a/server/apps/newsletter/views.py +++ b/server/apps/newsletter/views.py @@ -18,7 +18,6 @@ def subscribe(request): with transaction.atomic(): subscriber = Subscriber.objects.create(email=email, is_active=True) logger.info(f"Triggering Beehiiv sync for subscriber: {subscriber.id}") - sync_subscriber_to_beehiiv.delay(subscriber.id) return JsonResponse({'message': 'Subscription successful'}, status=200) except IntegrityError: