@@ -3382,17 +3382,17 @@ export class BaileysStartupService extends ChannelStartupService {
33823382 where : { instanceId : this . instanceId , remoteJid : { in : jids . users . map ( ( { jid } ) => jid ) } } ,
33833383 } ) ;
33843384
3385- // TODO: Unificar verificação de cache para todos os números (normais e LID)
3385+ // Unified cache verification for all numbers (normal and LID)
33863386 const numbersToVerify = jids . users . map ( ( { jid } ) => jid . replace ( '+' , '' ) ) ;
33873387
3388- // TODO: Busca TODOS os números no cache
3388+ // Get all numbers from cache
33893389 const cachedNumbers = await getOnWhatsappCache ( numbersToVerify ) ;
33903390
3391- // Separa números que estão e não estão no cache
3391+ // Separate numbers that are and are not in cache
33923392 const cachedJids = new Set ( cachedNumbers . flatMap ( ( cached ) => cached . jidOptions ) ) ;
33933393 const numbersNotInCache = numbersToVerify . filter ( ( jid ) => ! cachedJids . has ( jid ) ) ;
33943394
3395- // TODO: Só chama Baileys para números normais (@s.whatsapp.net) que não estão no cache
3395+ // Only call Baileys for normal numbers (@s.whatsapp.net) that are not in cache
33963396 let verify : { jid : string ; exists : boolean } [ ] = [ ] ;
33973397 const normalNumbersNotInCache = numbersNotInCache . filter ( ( jid ) => ! jid . includes ( '@lid' ) ) ;
33983398
@@ -3403,7 +3403,7 @@ export class BaileysStartupService extends ChannelStartupService {
34033403
34043404 const verifiedUsers = await Promise . all (
34053405 jids . users . map ( async ( user ) => {
3406- // TODO: Tenta pegar do cache primeiro (funciona para todos: normais e LID)
3406+ // Try to get from cache first (works for all: normal and LID)
34073407 const cached = cachedNumbers . find ( ( cached ) => cached . jidOptions . includes ( user . jid . replace ( '+' , '' ) ) ) ;
34083408
34093409 if ( cached ) {
@@ -3417,7 +3417,7 @@ export class BaileysStartupService extends ChannelStartupService {
34173417 ) ;
34183418 }
34193419
3420- // TODO: Se é número LID e não está no cache, considerar como válido
3420+ // If it's a LID number and not in cache, consider it valid
34213421 if ( user . jid . includes ( '@lid' ) ) {
34223422 return new OnWhatsAppDto (
34233423 user . jid ,
@@ -3428,7 +3428,7 @@ export class BaileysStartupService extends ChannelStartupService {
34283428 ) ;
34293429 }
34303430
3431- // TODO: Se não está no cache e é número normal, usa a verificação do Baileys
3431+ // If not in cache and is a normal number, use Baileys verification
34323432 let numberVerified : ( typeof verify ) [ 0 ] | null = null ;
34333433
34343434 // Brazilian numbers
0 commit comments