Remove unnecessary logs

This commit is contained in:
Judson Cairo 2024-08-10 23:16:14 -03:00
parent 926197b1ba
commit d31b2c7f97
2 changed files with 2 additions and 8 deletions

View File

@ -923,12 +923,10 @@ export class BaileysStartupService extends ChannelStartupService {
this.sendDataWebhook(Events.CHATS_SET, chatsRaw);
if (this.configService.get<Database>('DATABASE').SAVE_DATA.HISTORIC) {
const chatsSaved = await this.prismaRepository.chat.createMany({
await this.prismaRepository.chat.createMany({
data: chatsRaw,
skipDuplicates: true,
});
console.log('chatsSaved', chatsSaved);
}
const messagesRaw: any[] = [];
@ -987,12 +985,10 @@ export class BaileysStartupService extends ChannelStartupService {
this.sendDataWebhook(Events.MESSAGES_SET, [...messagesRaw]);
if (this.configService.get<Database>('DATABASE').SAVE_DATA.HISTORIC) {
const messagesSaved = await this.prismaRepository.message.createMany({
await this.prismaRepository.message.createMany({
data: messagesRaw,
skipDuplicates: true,
});
console.log('messagesSaved', messagesSaved);
}
if (

View File

@ -300,7 +300,6 @@ export class BusinessStartupService extends ChannelStartupService {
protected async messageHandle(received: any, database: Database, settings: any) {
try {
console.log(received);
let messageRaw: any;
let pushName: any;
@ -983,7 +982,6 @@ export class BusinessStartupService extends ChannelStartupService {
return messageRaw;
} catch (error) {
console.log(error.response.data);
this.logger.error(error);
throw new BadRequestException(error.toString());
}