From d557a2d695b79009a76710f803677d445d60a27b Mon Sep 17 00:00:00 2001 From: Cleber Wilson Date: Thu, 15 Aug 2024 13:49:50 -0300 Subject: [PATCH] @whiskeysockets/baileys updated --- package.json | 2 +- src/whatsapp/services/whatsapp.service.ts | 8 ++------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 1e7b68f2..0fff1bb5 100644 --- a/package.json +++ b/package.json @@ -90,11 +90,11 @@ "@types/yamljs": "^0.2.34", "@typescript-eslint/eslint-plugin": "6.21.0", "@typescript-eslint/parser": "6.21.0", - "copy-webpack-plugin": "^12.0.2", "eslint": "8.47.0", "eslint-config-prettier": "^9.1.0", "eslint-plugin-prettier": "^5.0.1", "prettier": "^3.1.0", + "copy-webpack-plugin": "^12.0.2", "prisma": "^5.14.0", "ts-node-dev": "^2.0.0", "typescript": "^5.4.5" diff --git a/src/whatsapp/services/whatsapp.service.ts b/src/whatsapp/services/whatsapp.service.ts index 6ffd2b3a..a1f780db 100644 --- a/src/whatsapp/services/whatsapp.service.ts +++ b/src/whatsapp/services/whatsapp.service.ts @@ -38,6 +38,7 @@ */ import makeWASocket, { + BaileysEventMap, BufferedEventData, CacheStore, Chat, @@ -719,12 +720,7 @@ export class WAStartupService { 'messaging-history.set': async ({ messages, chats, - }: { - chats: Chat[]; - contacts: Contact[]; - messages: proto.IWebMessageInfo[]; - isLatest: boolean; - }) => { + }: BaileysEventMap['messaging-history.set']) => { if (chats && chats.length > 0) { const chatsRaw: PrismType.Chat[] = chats.map((chat) => { return {