fix: Correctly detect Slack team
This commit is contained in:
parent
5a6b9caabc
commit
232216193f
|
@ -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 });
|
||||
}
|
||||
});
|
||||
|
|
Reference in New Issue