changelog

This commit is contained in:
Davidson Gomes 2024-08-09 06:49:49 -03:00
parent 56a165db54
commit fa05cf85ab
2 changed files with 5 additions and 2 deletions

View File

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

View File

@ -26,7 +26,10 @@ export const sendTelemetry = async (route: string): Promise<void> => {
timestamp: new Date(),
};
const url = process.env.TELEMETRY_URL || 'https://log.evolution-api.com/telemetry';
const url =
process.env.TELEMETRY_URL && process.env.TELEMETRY_URL !== ''
? process.env.TELEMETRY_URL
: 'https://log.evolution-api.com/telemetry';
axios
.post(url, telemetry)