Return updated collection on document move
This commit is contained in:
@ -282,6 +282,8 @@ router.post('documents.move', auth(), async ctx => {
|
|||||||
await collection.addDocumentToStructure(document, index);
|
await collection.addDocumentToStructure(document, index);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
document.collection = collection;
|
||||||
|
|
||||||
ctx.body = {
|
ctx.body = {
|
||||||
data: await presentDocument(ctx, document),
|
data: await presentDocument(ctx, document),
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user