Fix on collection count check
This commit is contained in:
@ -45,7 +45,7 @@ const Collection = sequelize.define(
|
|||||||
// Don't auto-create for journal types, yet
|
// Don't auto-create for journal types, yet
|
||||||
if (collection.type !== 'atlas') return;
|
if (collection.type !== 'atlas') return;
|
||||||
|
|
||||||
if (collections.length === 0) {
|
if (collections.length < 2) {
|
||||||
// Create intro document if first collection for team
|
// Create intro document if first collection for team
|
||||||
const document = await Document.create({
|
const document = await Document.create({
|
||||||
parentDocumentId: null,
|
parentDocumentId: null,
|
||||||
|
Reference in New Issue
Block a user