diff --git a/patches/025-optimize-get-by-email.patch b/patches/025-optimize-get-by-email.patch index 172f23e299daa3646a43549d1cf684e687121aa1..29b51b66af0869bdf5183d2ba8cb5b1000699af0 100644 --- a/patches/025-optimize-get-by-email.patch +++ b/patches/025-optimize-get-by-email.patch @@ -16,7 +16,7 @@ Subject: [PATCH] To optimize getByEmail as we have boundary conditions that emai - $users = array_map(function ($uid) { - return $this->get($uid); - }, $userIds); -+ if(empty($mailDomain) && empty($altMailDomain)) { ++ if(empty($legacyDomain) && empty($mainDomain)) { + $userIds = $this->config->getUsersForUserValueCaseInsensitive('settings', 'email', $email); + $users = array_map(function ($uid) {