mirror of
https://github.com/QuivrHQ/quivr.git
synced 2024-12-21 13:21:30 +03:00
16cea2c86b
https://github.com/StanGirard/quivr/issues/1338 <img width="1215" alt="Screenshot 2023-10-05 at 18 05 30" src="https://github.com/StanGirard/quivr/assets/63923024/67562c50-ddc1-4eaa-8b68-d374b2eb4b67">
19 lines
459 B
Python
19 lines
459 B
Python
from uuid import UUID
|
|
|
|
from models.databases.supabase.onboarding import OnboardingStates
|
|
from models.settings import get_supabase_db
|
|
|
|
|
|
def get_user_onboarding(user_id: UUID) -> OnboardingStates | None:
|
|
"""
|
|
Get a user's onboarding status
|
|
|
|
Args:
|
|
user_id (UUID): The id of the user
|
|
|
|
Returns:
|
|
Onboardings: The user's onboarding status
|
|
"""
|
|
supabase_db = get_supabase_db()
|
|
return supabase_db.get_user_onboarding(user_id)
|