Fix on collection count check

This commit is contained in:
Jori Lallo
2017-07-18 21:57:34 -07:00
parent bbbf17c223
commit ca875915ce

View File

@ -45,7 +45,7 @@ const Collection = sequelize.define(
// Don't auto-create for journal types, yet
if (collection.type !== 'atlas') return;
if (collections.length === 0) {
if (collections.length < 2) {
// Create intro document if first collection for team
const document = await Document.create({
parentDocumentId: null,