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