update cli

This commit is contained in:
undefined committed 2020-07-20 18:06:14 +08:00
1 parent c4a13f2e27
commit 8b5107fefa
7 files changed
+36 -35

No files matched your search

+1 -1
View File
@@ -137,7 +137,7 @@ export function getStatus(domainId: string, did: ObjectID, uid: number) {
return document.getStatus(domainId, document.TYPE_DISCUSSION, did, uid);
}
export function addNode(domainId: string, _id: string, category: string, args: any) {
export function addNode(domainId: string, _id: string, category: string, args: any = {}) {
return document.add(
domainId, category, 1, document.TYPE_DISCUSSION_NODE,
_id, null, null, args,