Ajuste loop muliple message erro

This commit is contained in:
Marcos Tulio 2024-08-06 15:02:40 -03:00
parent d82945a735
commit bd7b142d56

View File

@ -1266,9 +1266,7 @@ export class BaileysStartupService extends ChannelStartupService {
where: { remoteJid: received.key.remoteJid, instanceId: this.instanceId },
data: contactRaw,
});
return;
}
} else {
this.sendDataWebhook(Events.CONTACTS_UPSERT, contactRaw);
if (this.configService.get<Database>('DATABASE').SAVE_DATA.CONTACTS)
@ -1276,6 +1274,7 @@ export class BaileysStartupService extends ChannelStartupService {
data: contactRaw,
});
}
}
} catch (error) {
this.logger.error(error);
}