From 2786313ab36188b0db1d59c677534ecbde621b2b Mon Sep 17 00:00:00 2001 From: Huan LI Date: Wed, 11 Jul 2018 15:54:10 +0800 Subject: [PATCH] update dep --- package.json | 2 +- src/user/contact.ts | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index c00a8c08a..dc966b94b 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/src/user/contact.ts b/src/user/contact.ts index 1910b1cf1..cc85de587 100644 --- a/src/user/contact.ts +++ b/src/user/contact.ts @@ -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(), ), ) -- GitLab