站内消息即时通知,测试断线重连

This commit is contained in:
undefined committed 2020-07-14 11:11:20 +08:00
1 parent a93da2badb
commit 900e19382b
14 files changed
+120 -46

No files matched your search

+4 -7
View File
@@ -24,13 +24,10 @@ export const pdocHidden: Pdoc = {
config: '',
};
export async function add(domainId: string, title: string, content: string, owner: number, {
pid = null,
data = null,
category = [],
tag = [],
hidden = false,
}) {
export async function add(
domainId: string, pid: string = null, title: string, content: string, owner: number,
tag: string[] = [], category: string[] = [], data: ObjectID = null, hidden = false,
) {
const d = await domain.inc(domainId, 'pidCounter', 1);
if (!pid) pid = d.pidCounter.toString();
return await document.add(