We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec44cbe commit 075b4ecCopy full SHA for 075b4ec
src/khoj/database/adapters/__init__.py
@@ -333,7 +333,7 @@ async def aget_user_subscription_state(user: KhojUser) -> str:
333
Valid state transitions: trial -> subscribed <-> unsubscribed OR expired
334
"""
335
user_subscription = await Subscription.objects.filter(user=user).afirst()
336
- return subscription_to_state(user_subscription)
+ return await sync_to_async(subscription_to_state)(user_subscription)
337
338
339
async def ais_user_subscribed(user: KhojUser) -> bool:
0 commit comments