Skip to content

Commit

Permalink
Merge pull request #239 from 2077-Collective/fix/deploy
Browse files Browse the repository at this point in the history
fix: deploy fix
  • Loading branch information
losndu authored Jan 15, 2025
2 parents 7863b33 + 9eaccd4 commit 7d1c12b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions server/apps/newsletter/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__)
Expand All @@ -19,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:
Expand Down

0 comments on commit 7d1c12b

Please sign in to comment.