Skip to content

Commit

Permalink
Make sure query.renderQuery is run in the right environment
Browse files Browse the repository at this point in the history
  • Loading branch information
zefhemel committed Aug 31, 2024
1 parent bddb1b5 commit d9efb32
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion common/query_functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
]);
Expand Down

0 comments on commit d9efb32

Please sign in to comment.