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
1 changed files with 2 additions and 0 deletions

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),
};