Merge branch 'thenanyu-refactor-doc-dirty-logic'
This commit is contained in:
@@ -522,7 +522,6 @@ router.post('documents.create', auth(), async ctx => {
|
||||
index,
|
||||
} = ctx.body;
|
||||
ctx.assertUuid(collectionId, 'collectionId must be an uuid');
|
||||
ctx.assertPresent(title, 'title is required');
|
||||
ctx.assertPresent(text, 'text is required');
|
||||
if (parentDocumentId) {
|
||||
ctx.assertUuid(parentDocumentId, 'parentDocumentId must be an uuid');
|
||||
|
||||
@@ -284,11 +284,7 @@ export default function Api() {
|
||||
}
|
||||
required
|
||||
/>
|
||||
<Argument
|
||||
id="title"
|
||||
description="Title for the document"
|
||||
required
|
||||
/>
|
||||
<Argument id="title" description="Title for the document" />
|
||||
<Argument
|
||||
id="text"
|
||||
description="Content of the document in Markdow"
|
||||
|
||||
Reference in New Issue
Block a user