V2
This commit is contained in:
parent
5dfc25ec83
commit
fd271763d9
@ -122,13 +122,12 @@ router.get('/analysis', wrapAsync(async (req, res) => {
|
||||
findingCounts[type] = (findingCounts[type] || 0) + 1;
|
||||
});
|
||||
|
||||
try {
|
||||
const parsed = JSON.parse(interview.inference_notes || '{}');
|
||||
const inferenceNotes = String(interview.inference_notes || '').trim();
|
||||
if (inferenceNotes.startsWith('{')) {
|
||||
const parsed = JSON.parse(inferenceNotes);
|
||||
(parsed.tags || []).forEach((tag) => {
|
||||
tagCounts[tag] = (tagCounts[tag] || 0) + 1;
|
||||
});
|
||||
} catch (error) {
|
||||
console.error('Failed to parse interview inference notes', error);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user