From 6af904dbd4b8743f0af6f17c733a2af8bca37c79 Mon Sep 17 00:00:00 2001 From: Kailash Nadh Date: Sun, 27 Aug 2023 12:17:50 +0530 Subject: [PATCH] Lowercase email search on UI to match lowercase email index in DB. Closes #1464. --- frontend/src/views/Subscribers.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/views/Subscribers.vue b/frontend/src/views/Subscribers.vue index 29919ff..510fb7a 100644 --- a/frontend/src/views/Subscribers.vue +++ b/frontend/src/views/Subscribers.vue @@ -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()}')`; } },