mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-14 01:41:24 -06:00
fix: Debug Bad Request
This commit is contained in:
parent
cd0da914f4
commit
adc8833670
@ -11,6 +11,7 @@
|
|||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
* Fix looping connection messages in chatwoot
|
* Fix looping connection messages in chatwoot
|
||||||
|
* Improved performance of fetch instances
|
||||||
|
|
||||||
# 1.5.0 (2023-08-18 12:47)
|
# 1.5.0 (2023-08-18 12:47)
|
||||||
|
|
||||||
|
@ -46,7 +46,7 @@
|
|||||||
"@figuro/chatwoot-sdk": "^1.1.14",
|
"@figuro/chatwoot-sdk": "^1.1.14",
|
||||||
"@hapi/boom": "^10.0.1",
|
"@hapi/boom": "^10.0.1",
|
||||||
"@sentry/node": "^7.59.2",
|
"@sentry/node": "^7.59.2",
|
||||||
"@whiskeysockets/baileys": "^6.4.1",
|
"@whiskeysockets/baileys": "^6.4.0",
|
||||||
"amqplib": "^0.10.3",
|
"amqplib": "^0.10.3",
|
||||||
"axios": "^1.3.5",
|
"axios": "^1.3.5",
|
||||||
"class-validator": "^0.13.2",
|
"class-validator": "^0.13.2",
|
||||||
@ -78,7 +78,8 @@
|
|||||||
"sharp": "^0.30.7",
|
"sharp": "^0.30.7",
|
||||||
"socket.io": "^4.7.1",
|
"socket.io": "^4.7.1",
|
||||||
"socks-proxy-agent": "^8.0.1",
|
"socks-proxy-agent": "^8.0.1",
|
||||||
"uuid": "^9.0.0"
|
"uuid": "^9.0.0",
|
||||||
|
"whatsapp-web.js": "^1.22.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/compression": "^1.7.2",
|
"@types/compression": "^1.7.2",
|
||||||
|
@ -1900,17 +1900,17 @@ export class WAStartupService {
|
|||||||
|
|
||||||
public async fetchProfile(instanceName: string, number?: string) {
|
public async fetchProfile(instanceName: string, number?: string) {
|
||||||
const jid = number ? this.createJid(number) : this.client?.user?.id;
|
const jid = number ? this.createJid(number) : this.client?.user?.id;
|
||||||
|
|
||||||
this.logger.verbose('Getting profile with jid: ' + jid);
|
this.logger.verbose('Getting profile with jid: ' + jid);
|
||||||
try {
|
try {
|
||||||
this.logger.verbose('Getting profile info');
|
this.logger.verbose('Getting profile info');
|
||||||
|
|
||||||
if (number) {
|
if (number) {
|
||||||
const info = (await this.whatsappNumber({ numbers: [jid] }))?.shift();
|
const info = (await this.whatsappNumber({ numbers: [jid] }))?.shift();
|
||||||
const picture = await this.profilePicture(info?.jid);
|
const picture = await this.profilePicture(info?.jid);
|
||||||
const status = await this.getStatus(info?.jid);
|
const status = await this.getStatus(info?.jid);
|
||||||
const business = await this.fetchBusinessProfile(info?.jid);
|
const business = await this.fetchBusinessProfile(info?.jid);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
wuid: info?.jid || jid,
|
wuid: info?.jid || jid,
|
||||||
name: info?.name,
|
name: info?.name,
|
||||||
|
Loading…
Reference in New Issue
Block a user