@@ -445,7 +445,7 @@ export class BaileysStartupService extends ChannelStartupService {
445445 try {
446446 const profilePic = await this . profilePicture ( this . instance . wuid ) ;
447447 this . instance . profilePictureUrl = profilePic . profilePictureUrl ;
448- } catch ( error ) {
448+ } catch {
449449 this . instance . profilePictureUrl = null ;
450450 }
451451 const formattedWuid = this . instance . wuid . split ( '@' ) [ 0 ] . padEnd ( 30 , ' ' ) ;
@@ -524,7 +524,7 @@ export class BaileysStartupService extends ChannelStartupService {
524524 }
525525
526526 return webMessageInfo [ 0 ] . message ;
527- } catch ( error ) {
527+ } catch {
528528 return { conversation : '' } ;
529529 }
530530 }
@@ -597,7 +597,7 @@ export class BaileysStartupService extends ChannelStartupService {
597597 const rand = Math . floor ( Math . random ( ) * Math . floor ( proxyUrls . length ) ) ;
598598 const proxyUrl = 'http://' + proxyUrls [ rand ] ;
599599 options = { agent : makeProxyAgent ( proxyUrl ) , fetchAgent : makeProxyAgent ( proxyUrl ) } ;
600- } catch ( error ) {
600+ } catch {
601601 this . localProxy . enabled = false ;
602602 }
603603 } else {
@@ -1189,7 +1189,7 @@ export class BaileysStartupService extends ChannelStartupService {
11891189 where : { id : existingChat . id } ,
11901190 data : { name : received . pushName } ,
11911191 } ) ;
1192- } catch ( error ) {
1192+ } catch {
11931193 console . log ( `Chat insert record ignored: ${ received . key . remoteJid } - ${ this . instanceId } ` ) ;
11941194 }
11951195 }
@@ -1564,7 +1564,7 @@ export class BaileysStartupService extends ChannelStartupService {
15641564 if ( this . configService . get < Database > ( 'DATABASE' ) . SAVE_DATA . CHATS ) {
15651565 try {
15661566 await this . prismaRepository . chat . update ( { where : { id : existingChat . id } , data : chatToInsert } ) ;
1567- } catch ( error ) {
1567+ } catch {
15681568 console . log ( `Chat insert record ignored: ${ chatToInsert . remoteJid } - ${ chatToInsert . instanceId } ` ) ;
15691569 }
15701570 }
@@ -1832,7 +1832,7 @@ export class BaileysStartupService extends ChannelStartupService {
18321832 const profilePictureUrl = await this . client . profilePictureUrl ( jid , 'image' ) ;
18331833
18341834 return { wuid : jid , profilePictureUrl } ;
1835- } catch ( error ) {
1835+ } catch {
18361836 return { wuid : jid , profilePictureUrl : null } ;
18371837 }
18381838 }
@@ -1842,7 +1842,7 @@ export class BaileysStartupService extends ChannelStartupService {
18421842
18431843 try {
18441844 return { wuid : jid , status : ( await this . client . fetchStatus ( jid ) ) [ 0 ] ?. status } ;
1845- } catch ( error ) {
1845+ } catch {
18461846 return { wuid : jid , status : null } ;
18471847 }
18481848 }
@@ -1891,7 +1891,7 @@ export class BaileysStartupService extends ChannelStartupService {
18911891 website : business ?. website ?. shift ( ) ,
18921892 } ;
18931893 }
1894- } catch ( error ) {
1894+ } catch {
18951895 return { wuid : jid , name : null , picture : null , status : null , os : null , isBusiness : false } ;
18961896 }
18971897 }
@@ -2131,7 +2131,7 @@ export class BaileysStartupService extends ChannelStartupService {
21312131 if ( ! cache . REDIS . ENABLED && ! cache . LOCAL . ENABLED ) group = await this . findGroup ( { groupJid : sender } , 'inner' ) ;
21322132 else group = await this . getGroupMetadataCache ( sender ) ;
21332133 // group = await this.findGroup({ groupJid: sender }, 'inner');
2134- } catch ( error ) {
2134+ } catch {
21352135 throw new NotFoundException ( 'Group not found' ) ;
21362136 }
21372137
@@ -3640,7 +3640,7 @@ export class BaileysStartupService extends ChannelStartupService {
36403640 { } ,
36413641 { logger : P ( { level : 'error' } ) as any , reuploadRequest : this . client . updateMediaMessage } ,
36423642 ) ;
3643- } catch ( err ) {
3643+ } catch {
36443644 this . logger . error ( 'Download Media failed, trying to retry in 5 seconds...' ) ;
36453645 await new Promise ( ( resolve ) => setTimeout ( resolve , 5000 ) ) ;
36463646 const mediaType = Object . keys ( msg . message ) . find ( ( key ) => key . endsWith ( 'Message' ) ) ;
@@ -4230,7 +4230,7 @@ export class BaileysStartupService extends ChannelStartupService {
42304230 public async inviteInfo ( id : GroupInvite ) {
42314231 try {
42324232 return await this . client . groupGetInviteInfo ( id . inviteCode ) ;
4233- } catch ( error ) {
4233+ } catch {
42344234 throw new NotFoundException ( 'No invite info' , id . inviteCode ) ;
42354235 }
42364236 }
@@ -4253,7 +4253,7 @@ export class BaileysStartupService extends ChannelStartupService {
42534253 }
42544254
42554255 return { send : true , inviteUrl } ;
4256- } catch ( error ) {
4256+ } catch {
42574257 throw new NotFoundException ( 'No send invite' ) ;
42584258 }
42594259 }
@@ -4717,7 +4717,7 @@ export class BaileysStartupService extends ChannelStartupService {
47174717 collectionsLength : collections ?. length ,
47184718 collections : collections ,
47194719 } ;
4720- } catch ( error ) {
4720+ } catch {
47214721 return { wuid : jid , name : null , isBusiness : false } ;
47224722 }
47234723 }
0 commit comments