Added documentation for the auto-population feature and the analytics integration.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
from typing import Dict, Any
|
||||
from loguru import logger
|
||||
from fastapi import HTTPException
|
||||
from fastapi import HTTPException, Depends
|
||||
from middleware.auth_middleware import get_current_user
|
||||
|
||||
|
||||
async def complete_step(step_number: int, request_data: Dict[str, Any], current_user: Dict[str, Any]):
|
||||
@@ -57,11 +58,11 @@ async def complete_onboarding(current_user: Dict[str, Any]):
|
||||
raise HTTPException(status_code=500, detail="Internal server error")
|
||||
|
||||
|
||||
async def reset_onboarding():
|
||||
async def reset_onboarding(current_user: dict = Depends(get_current_user)):
|
||||
try:
|
||||
from api.onboarding_utils.onboarding_control_service import OnboardingControlService
|
||||
control_service = OnboardingControlService()
|
||||
return await control_service.reset_onboarding()
|
||||
return await control_service.reset_onboarding(current_user)
|
||||
except Exception as e:
|
||||
logger.error(f"Error resetting onboarding: {str(e)}")
|
||||
raise HTTPException(status_code=500, detail="Internal server error")
|
||||
|
||||
Reference in New Issue
Block a user