Skip to content

Commit

Permalink
Lowercase email search on UI to match lowercase email index in DB. Cl…
Browse files Browse the repository at this point in the history
…oses #1464.
  • Loading branch information
knadh committed Aug 27, 2023
1 parent 07a9632 commit 6af904d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/views/Subscribers.vue
Original file line number Diff line number Diff line change
Expand Up @@ -331,9 +331,9 @@ export default Vue.extend({
this.queryParams.page = 1;
if (this.$utils.validateEmail(q)) {
this.queryParams.queryExp = `email = '${q}'`;
this.queryParams.queryExp = `email = '${q.toLowerCase()}'`;
} else {
this.queryParams.queryExp = `(name ~* '${q}' OR email ~* '${q}')`;
this.queryParams.queryExp = `(name ~* '${q}' OR email ~* '${q.toLowerCase()}')`;
}
},
Expand Down

0 comments on commit 6af904d

Please sign in to comment.