Create type=atlas collections for users on login

This commit is contained in:
Jori Lallo
2016-09-14 20:13:29 -07:00
parent a7ab9b6779
commit acdc8531e4

View File

@@ -17,17 +17,17 @@ const Team = sequelize.define('team', {
const atlas = await Atlas.create({
name: this.name,
description: 'Your first Atlas',
type: 'journal',
type: 'atlas',
teamId: this.id,
creatorId: userId,
});
return atlas;
}
},
},
indexes: [
{
unique: true,
fields: ['slackId']
fields: ['slackId'],
},
],
});