Return updated collection on document move
This commit is contained in:
parent
917c5c4923
commit
ce5b6e6ac8
@ -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),
|
||||
};
|
||||
|
Reference in New Issue
Block a user