this should be validated

This commit is contained in:
Jori Lallo
2017-06-06 00:16:09 -07:00
parent 1b25408272
commit a80f58b0e2

View File

@ -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({