Skip to content

Commit

Permalink
simplify async
Browse files Browse the repository at this point in the history
  • Loading branch information
johanneswilm committed Jan 23, 2025
1 parent 1a39fa1 commit e53a32a
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions fiduswriter/payment/views.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import datetime
from httpx import AsyncClient
from asgiref.sync import async_to_sync, sync_to_async

from django.conf import settings
from django.contrib.auth.decorators import login_required
Expand Down Expand Up @@ -53,10 +52,8 @@ def get_subscription_details(request):
return JsonResponse(response, status=200)


@sync_to_async
@login_required
@require_POST
@async_to_sync
async def update_subscription(request):
customer = Customer.objects.filter(user=request.user).first()
if not customer:
Expand Down

0 comments on commit e53a32a

Please sign in to comment.