From 95f2e8c19ed674a5e2bbbee43a5039ce55709d66 Mon Sep 17 00:00:00 2001 From: Jori Lallo Date: Sun, 9 Jul 2017 13:32:16 -0700 Subject: [PATCH] Update associated collection --- server/api/documents.js | 1 + 1 file changed, 1 insertion(+) diff --git a/server/api/documents.js b/server/api/documents.js index cf5258611..e482c79d7 100644 --- a/server/api/documents.js +++ b/server/api/documents.js @@ -221,6 +221,7 @@ router.post('documents.update', auth(), async ctx => { const collection = await Collection.findById(document.atlasId); if (collection.type === 'atlas') { await collection.updateDocument(document); + document.collection = collection; } ctx.body = {