File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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" ,
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" ,
Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments