diff --git a/packages/server/src/threads/query.ts b/packages/server/src/threads/query.ts index 3d6428dd56..87b2212a23 100644 --- a/packages/server/src/threads/query.ts +++ b/packages/server/src/threads/query.ts @@ -89,7 +89,7 @@ class QueryRunner { let query // handle SQL injections by interpolating the variables if (isSQL(datasourceClone)) { - query = interpolateSQL(fieldsClone, enrichedParameters, integration) + query = interpolateSQL(fieldsClone, enrichedContext, integration) } else { query = enrichQueryFields(fieldsClone, enrichedContext) }