Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
Merge pull request #4198 from trufflesuite/db-fix
Browse files Browse the repository at this point in the history
Bug fix: Sanitize network name for graphql query in db
  • Loading branch information
eggplantzzz committed Jul 22, 2021
2 parents cbb3ff7 + 4e44178 commit d129001
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/db/src/project/assignNames/getCurrent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const process = Batch.configure<{
"projects",
id,
gql`
fragment Resolve_${type}_${name} on Project {
fragment Resolve_${type}_${name.replace(/[^0-9a-zA-Z_]/, "")} on Project {
resolve(type: "${type}", name: "${name}") {
id
resource {
Expand Down

0 comments on commit d129001

Please sign in to comment.