This commit is contained in:
Luke Crouch 2019-11-08 14:31:01 -06:00
Родитель 3f135f71e9
Коммит 8708eba10a
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -83,9 +83,9 @@ const DB = {
// We don't want to get subscribers records where the email address has
// since been added "under" an FxA subscription
const allEmailAddressesSubquery = knex("email_addresses").select("email");
const preFxaSubscribers = await knex("subscribers").where({
"fxa_uid": "",
}).andWhere(
const preFxaSubscribers = await knex("subscribers").whereRaw(
"(fxa_uid = '') IS NOT FALSE"
).andWhere(
"primary_email", "not in", allEmailAddressesSubquery
);
return preFxaSubscribers;