diff --git a/frontend/src/components/CandidateInfo.tsx b/frontend/src/components/CandidateInfo.tsx index 7ca6910..e5b840e 100644 --- a/frontend/src/components/CandidateInfo.tsx +++ b/frontend/src/components/CandidateInfo.tsx @@ -33,6 +33,7 @@ const CandidateInfo: React.FC = (props: CandidateInfoProps) if (!candidate) { return No user loaded.; } + console.log(candidate); return ( => { diff --git a/frontend/src/pages/candidate/Profile.tsx b/frontend/src/pages/candidate/Profile.tsx index af4783f..660a3aa 100644 --- a/frontend/src/pages/candidate/Profile.tsx +++ b/frontend/src/pages/candidate/Profile.tsx @@ -208,6 +208,7 @@ const CandidateProfilePage: React.FC = (props: BackstoryPage if (e.target.files && e.target.files[0]) { if (await apiClient.uploadCandidateProfile(e.target.files[0])) { candidate.profileImage = 'profile.' + e.target.files[0].name.replace(/^.*\./, ''); + console.log(`Set profile image to: ${candidate.profileImage}`); updateUserData(candidate); } } diff --git a/frontend/src/types/types.ts b/frontend/src/types/types.ts index 9dcf9ab..5ade0fe 100644 --- a/frontend/src/types/types.ts +++ b/frontend/src/types/types.ts @@ -1,6 +1,6 @@ // Generated TypeScript types from Pydantic models // Source: src/backend/models.py -// Generated on: 2025-06-03T02:54:38.566349 +// Generated on: 2025-06-03T04:01:05.747332 // DO NOT EDIT MANUALLY - This file is auto-generated // ============================ diff --git a/src/backend/main.py b/src/backend/main.py index e2a3b84..6d1db20 100644 --- a/src/backend/main.py +++ b/src/backend/main.py @@ -2067,7 +2067,7 @@ async def search_candidate_documents( class RAGDocumentRequest(BaseModel): """Request model for RAG document content""" - doc_id: str + id: str @api_router.post("/candidates/rag-content") async def post_candidate_vector_content( @@ -2235,7 +2235,7 @@ async def get_candidates( [c.model_dump(by_alias=True, exclude_unset=True) for c in paginated_candidates], page, limit, total ) - + return create_success_response(paginated_response) except Exception as e: