Update associated collection

This commit is contained in:
Jori Lallo
2017-07-09 13:32:16 -07:00
parent 64994ef351
commit 95f2e8c19e

View File

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