AI Analysis: persist analysis on candidate profile

This commit is contained in:
jeremy bayse
2026-03-22 22:32:10 +01:00
parent 6c1f6af523
commit 33fcdcac3d
4 changed files with 40 additions and 2 deletions

View File

@@ -23,6 +23,12 @@ class AIAnalysisController extends Controller
try {
$analysis = $this->aiService->analyze($candidate);
// Persist the analysis on the candidate profile
$candidate->update([
'ai_analysis' => $analysis
]);
return response()->json($analysis);
} catch (\Exception $e) {
return response()->json(['error' => $e->getMessage()], 500);