fix: Correctly detect Slack team

This commit is contained in:
Tom Moor
2019-06-27 22:35:49 -07:00
parent 5a6b9caabc
commit 232216193f

View File

@@ -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 });
}
});