From a80f58b0e2b32644d337265068f12223bbb6ed6c Mon Sep 17 00:00:00 2001 From: Jori Lallo Date: Tue, 6 Jun 2017 00:16:09 -0700 Subject: [PATCH] this should be validated --- server/api/documents.js | 1 - 1 file changed, 1 deletion(-) diff --git a/server/api/documents.js b/server/api/documents.js index 02b934d66..13857d8b1 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({