mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 07:07:35 +01:00
fix(script): revert email query
This commit is contained in:
@@ -62,8 +62,8 @@ async function _processEmailAddress (email) {
|
|||||||
const users = await User.find({
|
const users = await User.find({
|
||||||
$or: [
|
$or: [
|
||||||
{'auth.local.email': emailRegex},
|
{'auth.local.email': emailRegex},
|
||||||
{'auth.facebook.emails': emailRegex},
|
{'auth.facebook.emails.value': emailRegex},
|
||||||
{'auth.google.emails': emailRegex},
|
{'auth.google.emails.value': emailRegex},
|
||||||
]},
|
]},
|
||||||
{
|
{
|
||||||
_id: 1,
|
_id: 1,
|
||||||
|
|||||||
Reference in New Issue
Block a user