Skip to content

Commit adc8833

Browse files
committed
fix: Debug Bad Request
1 parent cd0da91 commit adc8833

3 files changed

Lines changed: 7 additions & 5 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
### Fixed
1212

1313
* Fix looping connection messages in chatwoot
14+
* Improved performance of fetch instances
1415

1516
# 1.5.0 (2023-08-18 12:47)
1617

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"@figuro/chatwoot-sdk": "^1.1.14",
4747
"@hapi/boom": "^10.0.1",
4848
"@sentry/node": "^7.59.2",
49-
"@whiskeysockets/baileys": "^6.4.1",
49+
"@whiskeysockets/baileys": "^6.4.0",
5050
"amqplib": "^0.10.3",
5151
"axios": "^1.3.5",
5252
"class-validator": "^0.13.2",
@@ -78,7 +78,8 @@
7878
"sharp": "^0.30.7",
7979
"socket.io": "^4.7.1",
8080
"socks-proxy-agent": "^8.0.1",
81-
"uuid": "^9.0.0"
81+
"uuid": "^9.0.0",
82+
"whatsapp-web.js": "^1.22.1"
8283
},
8384
"devDependencies": {
8485
"@types/compression": "^1.7.2",

src/whatsapp/services/whatsapp.service.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1900,17 +1900,17 @@ export class WAStartupService {
19001900

19011901
public async fetchProfile(instanceName: string, number?: string) {
19021902
const jid = number ? this.createJid(number) : this.client?.user?.id;
1903-
1903+
19041904
this.logger.verbose('Getting profile with jid: ' + jid);
19051905
try {
19061906
this.logger.verbose('Getting profile info');
1907-
1907+
19081908
if (number) {
19091909
const info = (await this.whatsappNumber({ numbers: [jid] }))?.shift();
19101910
const picture = await this.profilePicture(info?.jid);
19111911
const status = await this.getStatus(info?.jid);
19121912
const business = await this.fetchBusinessProfile(info?.jid);
1913-
1913+
19141914
return {
19151915
wuid: info?.jid || jid,
19161916
name: info?.name,

0 commit comments

Comments
 (0)