mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-14 09:51:24 -06:00
Remove unnecessary logs
This commit is contained in:
parent
926197b1ba
commit
d31b2c7f97
@ -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 (
|
||||
|
@ -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());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user