(supabase: AsyncSupabaseClient = None, user_id: str = None)
| 47 | |
| 48 | |
| 49 | async def get_premium_status(supabase: AsyncSupabaseClient = None, user_id: str = None) -> bool: |
| 50 | if supabase is None and user_id is not None: |
| 51 | supabase = await get_async_supabase() |
| 52 | |
| 53 | try: |
| 54 | # return await supabase.get("users", "premium", "id", user_id) |
| 55 | # TODO: when we refactor premium management, add logic here |
| 56 | return False |
| 57 | except Exception as e: |
| 58 | logger.warning(f"Could not fetch premium status: {e}") |
| 59 | return False |
| 60 | |
| 61 | |
| 62 | async def update_stats( |
nothing calls this directly
no test coverage detected
searching dependent graphs…