chore: chatwoot verbose logs

This commit is contained in:
Davidson Gomes
2024-10-03 17:40:21 -03:00
parent 88c1830bf5
commit 14d10c00ec
3 changed files with 56 additions and 19 deletions

View File

@@ -1195,10 +1195,11 @@ export class BaileysStartupService extends ChannelStartupService {
);
}
this.prismaRepository.contact.updateMany({
where: { remoteJid: received.key.remoteJid, instanceId: this.instanceId },
data: contactRaw,
});
if (this.configService.get<Database>('DATABASE').SAVE_DATA.CONTACTS)
await this.prismaRepository.contact.create({
data: contactRaw,
});
return;
}