Skip to content

Commit ffe1523

Browse files
committed
Update whatsapp.service.ts
1 parent fd82aa1 commit ffe1523

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/whatsapp/services/whatsapp.service.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2156,7 +2156,7 @@ export class WAStartupService {
21562156

21572157
const onWhatsapp: OnWhatsAppDto[] = [];
21582158
for await (const number of data.numbers) {
2159-
const jid = this.createJid(number);
2159+
let jid = this.createJid(number);
21602160

21612161
if (isJidGroup(jid)) {
21622162
const group = await this.findGroup({ groupJid: jid }, 'inner');
@@ -2165,6 +2165,7 @@ export class WAStartupService {
21652165

21662166
onWhatsapp.push(new OnWhatsAppDto(group.id, !!group?.id, group?.subject));
21672167
} else {
2168+
jid = (!jid.startsWith('+')) ? `+${jid}` : jid;
21682169
const verify = await this.client.onWhatsApp(jid);
21692170

21702171
const result = verify[0];

0 commit comments

Comments
 (0)