mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
update cli
This commit is contained in:
1 parent
c4a13f2e27
commit
8b5107fefa
7 files changed
+36
-35
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user