mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-12-19 03:42:23 -06:00
changelog
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user