From 394137a96f6410589980a5484cf32fd62c522b4a Mon Sep 17 00:00:00 2001 From: Jori Lallo Date: Mon, 5 Sep 2016 14:22:26 -0700 Subject: [PATCH] comment --- server/api/documents.js | 1 + 1 file changed, 1 insertion(+) diff --git a/server/api/documents.js b/server/api/documents.js index a48ae4092..eef8fad50 100644 --- a/server/api/documents.js +++ b/server/api/documents.js @@ -119,6 +119,7 @@ router.post('documents.create', auth(), async (ctx) => { const document = await (() => { return new Promise(resolve => { lock(ownerCollection.id, 10000, async (done) => { + // FIXME: should we validate the existance of parentDocument? let parentDocumentObj = {}; if (parentDocument && ownerCollection.type === 'atlas') { parentDocumentObj = await Document.findOne({