Workable document moving

This commit is contained in:
Jori Lallo
2017-09-04 14:48:56 -07:00
parent 70d352e193
commit 483bf29cc4
14 changed files with 414 additions and 66 deletions

View File

@ -281,6 +281,8 @@ router.post('documents.move', auth(), async ctx => {
await collection.deleteDocument(document);
await collection.addDocumentToStructure(document, index);
}
// Update collection
document.collection = collection;
document.collection = collection;