Fix graphql prep query (#5478)

This commit is contained in:
Weiko 2024-05-20 15:53:13 +02:00 committed by GitHub
parent 88f5eb669e
commit b098027174
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;
}