Remove useless include
This commit is contained in:
parent
4c96f1ead0
commit
b4c4a5d64c
@ -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();
|
||||
|
Reference in New Issue
Block a user