Return updated collection on document move

This commit is contained in:
Jori Lallo 2017-09-12 00:11:53 -07:00
parent 917c5c4923
commit ce5b6e6ac8

View File

@ -282,6 +282,8 @@ router.post('documents.move', auth(), async ctx => {
await collection.addDocumentToStructure(document, index);
}
document.collection = collection;
ctx.body = {
data: await presentDocument(ctx, document),
};