提交 2786313a 编写于 作者: Huan (李卓桓)'s avatar Huan (李卓桓)

update dep

上级 4d4bcf89
......@@ -96,7 +96,7 @@
"rxjs": "^6.1.0",
"state-switch": "^0.6.2",
"watchdog": "^0.8.1",
"wechaty-puppet": "^0.6",
"wechaty-puppet": "^0.6.7",
"ws": "^5.2.0"
},
"devDependencies": {
......
......@@ -202,12 +202,12 @@ export class Contact extends Accessory implements Sayable {
let batchIndex = 0
while (batchIndex * CHUNK_SIZE < contactList.length) {
const contactListChunk = contactList.slice(
batchIndex * CHUNK_SIZE,
batchIndex * (CHUNK_SIZE + 1),
const batchContactList = contactList.slice(
CHUNK_SIZE * batchIndex,
CHUNK_SIZE * (batchIndex + 1),
)
await Promise.all(
contactListChunk.map(
batchContactList.map(
c => c.ready(),
),
)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册