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);
|
this.sendDataWebhook(Events.CHATS_SET, chatsRaw);
|
||||||
|
|
||||||
if (this.configService.get<Database>('DATABASE').SAVE_DATA.HISTORIC) {
|
if (this.configService.get<Database>('DATABASE').SAVE_DATA.HISTORIC) {
|
||||||
const chatsSaved = await this.prismaRepository.chat.createMany({
|
await this.prismaRepository.chat.createMany({
|
||||||
data: chatsRaw,
|
data: chatsRaw,
|
||||||
skipDuplicates: true,
|
skipDuplicates: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
console.log('chatsSaved', chatsSaved);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const messagesRaw: any[] = [];
|
const messagesRaw: any[] = [];
|
||||||
@ -987,12 +985,10 @@ export class BaileysStartupService extends ChannelStartupService {
|
|||||||
this.sendDataWebhook(Events.MESSAGES_SET, [...messagesRaw]);
|
this.sendDataWebhook(Events.MESSAGES_SET, [...messagesRaw]);
|
||||||
|
|
||||||
if (this.configService.get<Database>('DATABASE').SAVE_DATA.HISTORIC) {
|
if (this.configService.get<Database>('DATABASE').SAVE_DATA.HISTORIC) {
|
||||||
const messagesSaved = await this.prismaRepository.message.createMany({
|
await this.prismaRepository.message.createMany({
|
||||||
data: messagesRaw,
|
data: messagesRaw,
|
||||||
skipDuplicates: true,
|
skipDuplicates: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
console.log('messagesSaved', messagesSaved);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (
|
if (
|
||||||
|
@ -300,7 +300,6 @@ export class BusinessStartupService extends ChannelStartupService {
|
|||||||
|
|
||||||
protected async messageHandle(received: any, database: Database, settings: any) {
|
protected async messageHandle(received: any, database: Database, settings: any) {
|
||||||
try {
|
try {
|
||||||
console.log(received);
|
|
||||||
let messageRaw: any;
|
let messageRaw: any;
|
||||||
let pushName: any;
|
let pushName: any;
|
||||||
|
|
||||||
@ -983,7 +982,6 @@ export class BusinessStartupService extends ChannelStartupService {
|
|||||||
|
|
||||||
return messageRaw;
|
return messageRaw;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log(error.response.data);
|
|
||||||
this.logger.error(error);
|
this.logger.error(error);
|
||||||
throw new BadRequestException(error.toString());
|
throw new BadRequestException(error.toString());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user