Present with related objects

This commit is contained in:
Jori Lallo
2016-05-19 23:53:07 -07:00
parent 99a59ceb94
commit 270f556570
3 changed files with 51 additions and 30 deletions

View File

@ -11,12 +11,6 @@ const Atlas = sequelize.define('atlas', {
name: DataTypes.STRING,
description: DataTypes.STRING,
type: { type: DataTypes.STRING, validate: { isIn: allowedAtlasTypes }},
}, {
instanceMethods: {
getRecentDocuments() {
return [];
},
},
});
Atlas.belongsTo(Team);