diff --git a/server/api/documents.js b/server/api/documents.js index 02b934d6..13857d8b 100644 --- a/server/api/documents.js +++ b/server/api/documents.js @@ -114,7 +114,6 @@ router.post('documents.create', auth(), async ctx => { if (!ownerCollection) throw httpErrors.BadRequest(); - // FIXME: should we validate the existance of parentDocument? let parentDocumentObj = {}; if (parentDocument && ownerCollection.type === 'atlas') { parentDocumentObj = await Document.findOne({