Skip to content

Commit

Permalink
fix: Use case-insensitive match for user existence email query
Browse files Browse the repository at this point in the history
  • Loading branch information
David Code Howard committed Oct 13, 2023
1 parent d96a909 commit 6cf2412
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"lodash": "^4.17.21",
"react": "^18.2.0",
"react-redux": "^8.1.2",
"terraso-backend": "github:techmatters/terraso-backend#4929e5f",
"terraso-backend": "github:techmatters/terraso-backend#b619a7d",
"uuid": "^9.0.1"
},
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions src/account/accountService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,14 +165,14 @@ export const checkUserInProject = async (
) => {
const existQuery = graphql(`
query userExistsInProject($email: String!, $project: String!) {
userExists: users(email: $email) {
userExists: users(email_Iexact: $email) {
edges {
node {
...userFields
}
}
}
userInProject: users(project: $project, email: $email) {
userInProject: users(project: $project, email_Iexact: $email) {
totalCount
}
}
Expand Down

0 comments on commit 6cf2412

Please sign in to comment.