From f445f15336d6a2b5947cc5f85c17d6acbf6ed28c Mon Sep 17 00:00:00 2001 From: DaKheera47 Date: Wed, 21 Jan 2026 15:38:00 +0000 Subject: [PATCH] profile fix fit --- orchestrator/src/server/services/profile.ts | 2 +- orchestrator/src/server/services/resumeProjects.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/orchestrator/src/server/services/profile.ts b/orchestrator/src/server/services/profile.ts index 36a3d2a..041a87e 100644 --- a/orchestrator/src/server/services/profile.ts +++ b/orchestrator/src/server/services/profile.ts @@ -3,7 +3,7 @@ import { join, dirname } from 'path'; import { fileURLToPath } from 'url'; const __dirname = dirname(fileURLToPath(import.meta.url)); -const DEFAULT_PROFILE_PATH = join(__dirname, '../../../../resume-generator/base.json'); +const DEFAULT_PROFILE_PATH = process.env.RESUME_PROFILE_PATH || join(__dirname, '../../../../resume-generator/base.json'); let cachedProfile: any = null; let cachedProfilePath: string | null = null; diff --git a/orchestrator/src/server/services/resumeProjects.ts b/orchestrator/src/server/services/resumeProjects.ts index 6f6e16d..b3a7303 100644 --- a/orchestrator/src/server/services/resumeProjects.ts +++ b/orchestrator/src/server/services/resumeProjects.ts @@ -15,7 +15,7 @@ type ResumeProjectSelectionItem = ResumeProjectCatalogItem & { summaryText: stri export async function loadResumeProfile(profilePath: string = DEFAULT_RESUME_PROFILE_PATH): Promise { if (profilePath === DEFAULT_RESUME_PROFILE_PATH) { - return getProfile(); + return getProfile(profilePath); } const content = await readFile(profilePath, 'utf-8'); return JSON.parse(content) as unknown;