MCPcopy Create free account
hub / github.com/evolution-foundation/evolution-api / normalizeJid

Function normalizeJid

src/utils/onWhatsappCache.ts:68–71  ·  view source on GitHub ↗
(jid: string | null | undefined)

Source from the content-addressed store, hash-verified

66}
67
68function normalizeJid(jid: string | null | undefined): string | null {
69 if (!jid) return null;
70 return jid.startsWith('+') ? jid.slice(1) : jid;
71}
72
73export async function saveOnWhatsappCache(data: ISaveOnWhatsappCacheParams[]) {
74 if (!configService.get<Database>('DATABASE').SAVE_DATA.IS_ON_WHATSAPP) {

Callers 1

saveOnWhatsappCacheFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected