Parse ian's email prefs on dev
This commit is contained in:
parent
b2f81c1149
commit
a25acbe1db
|
@ -48,7 +48,7 @@ export async function sendPortfolioUpdateEmailsToAllUsers() {
|
||||||
return isProd()
|
return isProd()
|
||||||
? user.notificationPreferences.profit_loss_updates.includes('email') &&
|
? user.notificationPreferences.profit_loss_updates.includes('email') &&
|
||||||
!user.weeklyPortfolioUpdateEmailSent
|
!user.weeklyPortfolioUpdateEmailSent
|
||||||
: true
|
: user.notificationPreferences.profit_loss_updates.includes('email')
|
||||||
})
|
})
|
||||||
// Send emails in batches
|
// Send emails in batches
|
||||||
.slice(0, 200)
|
.slice(0, 200)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user