Skip to content

Commit fa05cf8

Browse files
committed
changelog
1 parent 56a165d commit fa05cf8

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "evolution-api",
3-
"version": "2.0.8-rc",
3+
"version": "2.0.9-rc",
44
"description": "Rest api for communication with WhatsApp",
55
"main": "./dist/src/main.js",
66
"scripts": {

src/utils/sendTelemetry.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@ export const sendTelemetry = async (route: string): Promise<void> => {
2626
timestamp: new Date(),
2727
};
2828

29-
const url = process.env.TELEMETRY_URL || 'https://log.evolution-api.com/telemetry';
29+
const url =
30+
process.env.TELEMETRY_URL && process.env.TELEMETRY_URL !== ''
31+
? process.env.TELEMETRY_URL
32+
: 'https://log.evolution-api.com/telemetry';
3033

3134
axios
3235
.post(url, telemetry)

0 commit comments

Comments
 (0)