From 30163e16a9b73a8f9161d795134095fefb33eeeb Mon Sep 17 00:00:00 2001 From: Pranav C Date: Wed, 2 Oct 2024 05:54:24 +0000 Subject: [PATCH] refactor: payload corrections --- packages/nocodb/src/utils/tele.ts | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/packages/nocodb/src/utils/tele.ts b/packages/nocodb/src/utils/tele.ts index 7351ce1f68..5e6136ce01 100644 --- a/packages/nocodb/src/utils/tele.ts +++ b/packages/nocodb/src/utils/tele.ts @@ -264,10 +264,6 @@ class Tele { xc_version: process.env.NC_SERVER_UUID, env: process.env.NODE_ENV || 'production', oneClick: !!process.env.NC_ONE_CLICK, - count: global.NC_COUNT, - cache, - litestream, - executable, }; try { payload.os_type = os.type(); @@ -275,8 +271,14 @@ class Tele { payload.os_release = os.release(); payload.docker = isDocker(); payload.machine_id = `${this.id},,`; - payload.upTime = Math.round(process.uptime() / 3600); - payload.payload = (await Tele.getInstanceMeta()) || {}; + payload.payload = { + ...((await Tele.getInstanceMeta()) || {}), + count: global.NC_COUNT, + upTime: Math.round(process.uptime() / 3600), + cache, + litestream, + executable, + }; } catch { // ignore }