mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2026-01-23 12:09:00 -06:00
Update src/utils/onWhatsappCache.ts
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
This commit is contained in:
@@ -107,11 +107,10 @@ export async function saveOnWhatsappCache(data: ISaveOnWhatsappCacheParams[]) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Se tiver remoteJidAlt com @lid novo, adicionar
|
// TODO: Se tiver remoteJidAlt com @lid novo, adicionar
|
||||||
if (altJid) {
|
if (altJid && !finalJidOptions.includes(altJid)) {
|
||||||
if (!finalJidOptions.includes(altJid)) {
|
|
||||||
finalJidOptions.push(altJid);
|
finalJidOptions.push(altJid);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
const uniqueNumbers = Array.from(new Set(finalJidOptions));
|
const uniqueNumbers = Array.from(new Set(finalJidOptions));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user