diff --git a/scripts/gdpr-delete-users.js b/scripts/gdpr-delete-users.js index 25de6fd472..381dd8c7d4 100644 --- a/scripts/gdpr-delete-users.js +++ b/scripts/gdpr-delete-users.js @@ -77,7 +77,7 @@ async function processEmailAddress (email) { const socialUsers = await User.find( { - 'auth.local.email': {$not: emailRegex}, + 'auth.local.email': { $not: emailRegex }, $or: [ { 'auth.facebook.emails.value': email }, { 'auth.google.emails.value': email },