From 924685e70fb134568f58be2faa58e069645f3d44 Mon Sep 17 00:00:00 2001 From: timwekkenbc Date: Tue, 18 Jun 2024 09:40:15 -0700 Subject: [PATCH] Updated decision evaluation to use query param because of proxy issues --- app/utils/api.ts | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/app/utils/api.ts b/app/utils/api.ts index c9b6c51..9353e08 100644 --- a/app/utils/api.ts +++ b/app/utils/api.ts @@ -115,10 +115,13 @@ export const getSubmissionFromCHEFSById = async (formId: string, id: string) => */ export const postDecision = async (jsonFile: string, context: unknown) => { try { - const { data } = await axiosAPIInstance.post(`/decisions/evaluate/${jsonFile}`, { - context, - trace: true, - }); + const { data } = await axiosAPIInstance.post( + `/decisions/evaluateByFile/?ruleFileName=${encodeURIComponent(jsonFile)}`, + { + context, + trace: true, + } + ); return data; } catch (error) { console.error(`Error simulating decision: ${error}`);