Removed logs & updated version

This commit is contained in:
Judson Cairo 2024-03-07 18:28:56 -03:00
parent 10b48aed97
commit 196c2e0ed8
6 changed files with 3 additions and 9 deletions

View File

@ -1,6 +1,6 @@
FROM node:20.7.0-alpine AS builder
LABEL version="1.6.2" description="Api to control whatsapp features through http requests."
LABEL version="1.7.0" description="Api to control whatsapp features through http requests."
LABEL maintainer="Davidson Gomes" git="https://github.com/DavidsonGomes"
LABEL contact="contato@agenciadgcode.com"

View File

@ -1,6 +1,6 @@
{
"name": "evolution-api",
"version": "1.6.2",
"version": "1.7.0",
"description": "Rest api for communication with WhatsApp",
"main": "./dist/src/main.js",
"scripts": {

View File

@ -25,7 +25,7 @@ info:
</font>
[![Run in Postman](https://run.pstmn.io/button.svg)](https://god.gw.postman.com/run-collection/26869335-5546d063-156b-4529-915f-909dd628c090?action=collection%2Ffork&source=rip_markdown&collection-url=entityId%3D26869335-5546d063-156b-4529-915f-909dd628c090%26entityType%3Dcollection%26workspaceId%3D339a4ee7-378b-45c9-b5b8-fd2c0a9c2442)
version: 1.6.2
version: 1.7.0
contact:
name: DavidsonGomes
email: contato@agenciadgcode.com

View File

@ -28,7 +28,6 @@ let amqpChannel: Channel | null = null;
export const initAMQP = () => {
return new Promise<void>((resolve, reject) => {
const rabbitConfig = configService.get<Rabbitmq>('RABBITMQ');
console.log(rabbitConfig);
connect(rabbitConfig.URI, (error, connection) => {
if (error) {
reject(error);

View File

@ -1124,7 +1124,6 @@ export class BaileysStartupService extends WAStartupService {
5: 'PLAYED',
};
for await (const { key, update } of args) {
console.log(key);
if (settings?.groups_ignore && key.remoteJid?.includes('@g.us')) {
this.logger.verbose('group ignored');
return;

View File

@ -303,7 +303,6 @@ export class BusinessStartupService extends WAStartupService {
if (received.contacts) pushName = received.contacts[0].profile.name;
if (received.messages) {
console.log('received?.messages[0]', received?.messages[0]);
const key = {
id: received.messages[0].id,
remoteJid: this.phoneNumber,
@ -772,9 +771,6 @@ export class BusinessStartupService extends WAStartupService {
}
})();
console.log('messageSent', messageSent);
console.log('message', message);
const messageRaw: MessageRaw = {
key: { fromMe: true, id: messageSent?.messages[0]?.id, remoteJid: this.createJid(number) },
//pushName: messageSent.pushName,