From e53a32ad794a6b7c1c0f7edc0d9e9b91c68e7b84 Mon Sep 17 00:00:00 2001
From: Johannes Wilm <mail@johanneswilm.org>
Date: Thu, 23 Jan 2025 22:05:18 +0100
Subject: [PATCH] simplify async

---
 fiduswriter/payment/views.py | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/fiduswriter/payment/views.py b/fiduswriter/payment/views.py
index f35bc27..7d96122 100644
--- a/fiduswriter/payment/views.py
+++ b/fiduswriter/payment/views.py
@@ -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
@@ -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: