From ca875915ce27aca2280d1574510bc5014941d615 Mon Sep 17 00:00:00 2001 From: Jori Lallo Date: Tue, 18 Jul 2017 21:57:34 -0700 Subject: [PATCH] Fix on collection count check --- server/models/Collection.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/models/Collection.js b/server/models/Collection.js index bf1713fc1..f124eb26d 100644 --- a/server/models/Collection.js +++ b/server/models/Collection.js @@ -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,