From ce5b6e6ac86bb654a8c9ebf4504ea717e0d947a5 Mon Sep 17 00:00:00 2001 From: Jori Lallo Date: Tue, 12 Sep 2017 00:11:53 -0700 Subject: [PATCH] Return updated collection on document move --- server/api/documents.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/api/documents.js b/server/api/documents.js index 3eb5efb8..a179f983 100644 --- a/server/api/documents.js +++ b/server/api/documents.js @@ -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), };