From b4c4a5d64c6c7c5e8dc21d842b122111951afb0d Mon Sep 17 00:00:00 2001 From: Jori Lallo Date: Sun, 9 Jul 2017 20:32:38 -0700 Subject: [PATCH] Remove useless include --- server/api/documents.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/server/api/documents.js b/server/api/documents.js index 2d19612b9..0ad1ee5b5 100644 --- a/server/api/documents.js +++ b/server/api/documents.js @@ -208,9 +208,7 @@ router.post('documents.update', auth(), async ctx => { ctx.assertPresent(title || text, 'title or text is required'); const user = ctx.state.user; - const document = await Document.findById(id, { - include: ['collection'], - }); + const document = await Document.findById(id); const collection = document.collection; if (!document || document.teamId !== user.teamId) throw httpErrors.NotFound();