From 9b395457085821aba38292c248166fc02f0d5424 Mon Sep 17 00:00:00 2001 From: 0x73746F66 <3494633+chrisdlangton@users.noreply.github.com> Date: Mon, 28 Oct 2024 14:43:25 +1100 Subject: [PATCH] fix: triage update (#54) --- functions/v1/issue/[uuid].js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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