Update associated collection
This commit is contained in:
@ -221,6 +221,7 @@ router.post('documents.update', auth(), async ctx => {
|
|||||||
const collection = await Collection.findById(document.atlasId);
|
const collection = await Collection.findById(document.atlasId);
|
||||||
if (collection.type === 'atlas') {
|
if (collection.type === 'atlas') {
|
||||||
await collection.updateDocument(document);
|
await collection.updateDocument(document);
|
||||||
|
document.collection = collection;
|
||||||
}
|
}
|
||||||
|
|
||||||
ctx.body = {
|
ctx.body = {
|
||||||
|
Reference in New Issue
Block a user