fixed ai-risk in CareerRoadmap.

This commit is contained in:
Josh 2025-07-18 18:03:07 +00:00
parent 5ad377b50e
commit f00bc75bb9

View File

@ -823,7 +823,7 @@ async function fetchAiRisk(socCode, careerName, description, tasks) {
try {
// 1) Check server2 for existing entry
const localRiskRes = await axios.get('api/ai-risk/${socCode}');
const localRiskRes = await axios.get(`api/ai-risk/${socCode}`);
aiRisk = localRiskRes.data; // { socCode, riskLevel, ... }
} catch (err) {
// 2) If 404 => call server3