Make sure query.renderQuery is run in the right environment

pull/1081/head
Zef Hemel 2024-08-31 12:08:14 +02:00
parent bddb1b5da9
commit d9efb32bb4
1 changed files with 2 additions and 1 deletions

View File

@ -56,7 +56,8 @@ export function buildQueryFunctions(
},
// INTERNAL: Used for implementing the { query } syntax in expressions
$query(query: Query, variables: Record<string, any>) {
return system.invokeFunction("query.renderQuery", [
return system.localSyscall("system.invokeFunction", [
"query.renderQuery",
query,
variables,
]);