Skip to content

Commit

Permalink
Fix graphql prep query (twentyhq#5478)
Browse files Browse the repository at this point in the history
  • Loading branch information
Weiko committed May 20, 2024
1 parent 88f5eb6 commit b098027
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -583,11 +583,10 @@ export class WorkspaceQueryRunnerService {
)};
`);

const results = await workspaceDataSource?.query<PGGraphQLResult>(`
SELECT graphql.resolve($$
${query}
$$);
`);
const results = await workspaceDataSource?.query<PGGraphQLResult>(
`SELECT graphql.resolve($1);`,
[query],
);

return results;
}
Expand Down

0 comments on commit b098027

Please sign in to comment.