Skip to content

Commit

Permalink
@whiskeysockets/baileys updated
Browse files Browse the repository at this point in the history
  • Loading branch information
jrCleber committed Aug 15, 2024
1 parent ef64bd2 commit d557a2d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
8 changes: 2 additions & 6 deletions src/whatsapp/services/whatsapp.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
*/

import makeWASocket, {
BaileysEventMap,
BufferedEventData,
CacheStore,
Chat,
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit d557a2d

Please sign in to comment.