Skip to content

Commit

Permalink
update baileys version
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidsonGomes committed May 20, 2024
1 parent 283b497 commit 65bba23
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"amqplib": "^0.10.3",
"@aws-sdk/client-sqs": "^3.569.0",
"axios": "^1.6.5",
"@whiskeysockets/baileys": "6.6.0",
"@whiskeysockets/baileys": "^6.7.2",
"class-validator": "^0.14.1",
"compression": "^1.7.4",
"cors": "^2.8.5",
Expand Down
6 changes: 3 additions & 3 deletions src/api/services/channels/whatsapp.baileys.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ export class BaileysStartupService extends ChannelStartupService {
printQRInTerminal: false,
mobile,
browser: number ? ['Chrome (Linux)', session.NAME, release()] : browser,
version,
version: [2, 2413, 1],
markOnlineOnConnect: this.localSettings.always_online,
retryRequestDelayMs: 10,
connectTimeoutMs: 60_000,
Expand Down Expand Up @@ -671,7 +671,7 @@ export class BaileysStartupService extends ChannelStartupService {
try {
this.instance.authState = await this.defineAuthState();

const { version } = await fetchLatestBaileysVersion();
// const { version } = await fetchLatestBaileysVersion();
const session = this.configService.get<ConfigSessionPhone>('CONFIG_SESSION_PHONE');
const browser: WABrowserDescription = [session.CLIENT, session.NAME, release()];

Expand Down Expand Up @@ -711,7 +711,7 @@ export class BaileysStartupService extends ChannelStartupService {
logger: P({ level: this.logBaileys }),
printQRInTerminal: false,
browser: this.phoneNumber ? ['Chrome (Linux)', session.NAME, release()] : browser,
version,
version: [2, 2413, 1],
markOnlineOnConnect: this.localSettings.always_online,
retryRequestDelayMs: 10,
connectTimeoutMs: 60_000,
Expand Down

0 comments on commit 65bba23

Please sign in to comment.