fix(whatsapp.gblib): Removal of trash in phone ID.

This commit is contained in:
Rodrigo Rodriguez 2021-05-09 18:51:02 -03:00
parent 30cdef67ee
commit 819b5937bb

View file

@ -174,7 +174,7 @@ export class WhatsappDirectLine extends GBService {
await e.onExchangeData(this.min, 'whatsappMessage', message); await e.onExchangeData(this.min, 'whatsappMessage', message);
}); });
const id = req.body.messages[0].chatId.split('@')[0]; const id = req.body.messages[0].chatId.split('@')[0].replace('true_','').replace('false_','');
const senderName = req.body.messages[0].senderName; const senderName = req.body.messages[0].senderName;
const sec = new SecService(); const sec = new SecService();