diff --git a/functions/v1/issue/[uuid].js b/functions/v1/issue/[uuid].js index 98f33c9..d2c7b5d 100644 --- a/functions/v1/issue/[uuid].js +++ b/functions/v1/issue/[uuid].js @@ -206,7 +206,7 @@ export async function onRequestGet(context) { if (seen === 1) { seenAt = new Date().getTime() } - const vexExist = finding.triage.some(t => t.analysisState === analysisState).length !== 0 + const vexExist = finding.triage.filter(t => t.analysisState === analysisState).length !== 0 let vexData = finding.triage.filter(t => t.analysisState === analysisState).pop() || {} if (!vexExist) { vexData.analysisState = analysisState