From bab334aa44df8d51baed8225c78c76f02817a17b Mon Sep 17 00:00:00 2001 From: Henry Oswald Date: Fri, 31 Aug 2018 11:16:28 +0100 Subject: [PATCH] fire and forget changeEmail in setDefaultEmailAddress prevents blocking/erroring the change email workflow --- services/web/app/coffee/Features/User/UserUpdater.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/web/app/coffee/Features/User/UserUpdater.coffee b/services/web/app/coffee/Features/User/UserUpdater.coffee index 3abffdf444..04bdfd5a4f 100644 --- a/services/web/app/coffee/Features/User/UserUpdater.coffee +++ b/services/web/app/coffee/Features/User/UserUpdater.coffee @@ -112,7 +112,8 @@ module.exports = UserUpdater = else if res.n == 0 # TODO: Check n or nMatched? return callback(new Error('Default email does not belong to user')) else - NewsletterManager.changeEmail oldEmail, email, callback + callback() + NewsletterManager.changeEmail oldEmail, email, ->