This commit is contained in:
Jori Lallo
2016-09-11 16:37:20 -07:00
parent 48a9a9f285
commit 43e60aacaf

View File

@ -68,7 +68,7 @@ router.post('auth.slack', async (ctx) => {
// Team // Team
let team = await Team.findOne({ where: { slackId: data.team.id } }); let team = await Team.findOne({ where: { slackId: data.team.id } });
let teamExisted = !!team; const teamExisted = !!team;
if (!team) { if (!team) {
team = await Team.create({ team = await Team.create({
name: data.team.name, name: data.team.name,