chore(email): next split test iteration

This commit is contained in:
Sabe Jones
2019-03-14 12:21:46 -05:00
parent 89e1c69728
commit 3f04c8abf5
3 changed files with 18 additions and 2 deletions

View File

@@ -184,7 +184,11 @@ async function registerLocal (req, res, { isV3 = false }) {
.remove({email: savedUser.auth.local.email})
.then(() => {
if (existingUser) return;
sendTxnEmail(savedUser, 'welcome-v2d');
if (savedUser._ABtests && savedUser._ABtests.welcomeEmailSplit) {
sendTxnEmail(savedUser, savedUser._ABtests.welcomeEmailSplit);
} else {
sendTxnEmail(savedUser, 'welcome');
}
});
if (!existingUser) {