From d0c0f619203ef75de86b39100951132fafe3ae1b Mon Sep 17 00:00:00 2001 From: Travis Tidwell Date: Fri, 22 Aug 2025 14:10:48 -0500 Subject: [PATCH] FIO-10572: Fixed issue where 'config' is not available in evalContext. --- src/core/evaluateProcess.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/evaluateProcess.ts b/src/core/evaluateProcess.ts index 8e1bbbf..d47bac7 100644 --- a/src/core/evaluateProcess.ts +++ b/src/core/evaluateProcess.ts @@ -31,6 +31,7 @@ export type EvaluateProcessorsOptions = { form: any; submission: any; scope?: any; + config?: any; token?: string; timeout?: number; additionalDeps?: string[]; @@ -46,6 +47,7 @@ export async function evaluateProcess({ submission, timeout = globalTimeout, scope = {}, + config = {}, token = '', additionalDeps = [], }: EvaluateProcessorsOptions): Promise { @@ -57,6 +59,7 @@ export async function evaluateProcess({ data: serializedSubmission.data, scope: scope, config: { + ...config, server: true, token, }, @@ -96,6 +99,7 @@ export async function evaluateProcessMocked( data: submission.data, scope: options.scope || {}, config: { + ...(options.config || {}), server: true, token: options.token || '', },