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