From 232216193f695e27d860d3498ab9a67467e4f3ef Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Thu, 27 Jun 2019 22:35:49 -0700 Subject: [PATCH] fix: Correctly detect Slack team --- server/models/User.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/models/User.js b/server/models/User.js index d3ec078c1..e813903d9 100644 --- a/server/models/User.js +++ b/server/models/User.js @@ -164,7 +164,7 @@ User.afterCreate(async user => { // From Slack support: // If you wish to contact users at an email address obtained through Slack, // you need them to opt-in through a clear and separate process. - if (team.service !== 'slack') { + if (!team.slackId) { sendEmail('welcome', user.email, { teamUrl: team.url }); } });