From d9efb32bb499386f5ac00ee99b0b2d80ddb33a52 Mon Sep 17 00:00:00 2001 From: Zef Hemel Date: Sat, 31 Aug 2024 12:08:14 +0200 Subject: [PATCH] Make sure query.renderQuery is run in the right environment --- common/query_functions.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/query_functions.ts b/common/query_functions.ts index 822f0fb5..5c734a54 100644 --- a/common/query_functions.ts +++ b/common/query_functions.ts @@ -56,7 +56,8 @@ export function buildQueryFunctions( }, // INTERNAL: Used for implementing the { query } syntax in expressions $query(query: Query, variables: Record) { - return system.invokeFunction("query.renderQuery", [ + return system.localSyscall("system.invokeFunction", [ + "query.renderQuery", query, variables, ]);