diff --git a/packages/server/src/threads/query.ts b/packages/server/src/threads/query.ts index 86cbf89c87..a9e7e6f47c 100644 --- a/packages/server/src/threads/query.ts +++ b/packages/server/src/threads/query.ts @@ -58,7 +58,6 @@ class QueryRunner { async execute(): Promise { let { datasource, fields, queryVerb, transformer } = this - let datasourceClone = cloneDeep(datasource) let fieldsClone = cloneDeep(fields) @@ -181,6 +180,7 @@ class QueryRunner { parameters, transformer: query.transformer, queryId, + ctx: this.ctx, }, { noRecursiveQuery: true } ).execute()