mirror of
https://github.com/outline/outline.git
synced 2026-12-06 11:12:32 +03:00
Fixes
This commit is contained in:
1 parent
7f4095b77f
commit
7ea6eb5d28
2 files changed
+8
-1
No files matched your search
@@ -119,6 +119,9 @@ router.post('documents.delete', auth(), async (ctx) => {
|
||||
|
||||
if (!document) throw httpErrors.BadRequest();
|
||||
|
||||
// TODO: Don't allow to destroy root docs
|
||||
// TODO: handle sub documents
|
||||
|
||||
try {
|
||||
await document.destroy();
|
||||
} catch (e) {
|
||||
|
||||
Reference in new issue
Block a user