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

@@ -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)