From 4999fb6e626b1d33287c51e078795b3473e336fe Mon Sep 17 00:00:00 2001 From: Kunal Sharma Date: Tue, 14 Mar 2023 13:27:26 +0530 Subject: [PATCH] URL fixes and adding source and client_ts in clickstreamEventService.ts | Kunal (#134) * url fix * URL fixes and adding source and client_ts in clickstreamEventService.ts * @TP-20455 | Quick Filters styling and fixes --- config/dev/config.js | 2 +- src/constants/config.js | 2 +- src/services/clickstreamEventService.ts | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/config/dev/config.js b/config/dev/config.js index feea6317..be4112ec 100644 --- a/config/dev/config.js +++ b/config/dev/config.js @@ -1,4 +1,4 @@ -export const BASE_AV_APP_URL = 'https://dev-longhorn-server.np.navi-tech.in/field-app'; +export const BASE_AV_APP_URL = 'https://dev-longhorn-portal.np.navi-tech.in/field-app'; export const SENTRY_DSN = 'https://877396e88a2b4f78b911016c64f9121a@glitchtip.cmd.navi-tech.in/155'; export const JANUS_SERVICE_URL = 'https://dev-longhorn-portal.np.navi-tech.in/api/events/json'; export const ENV = 'dev'; diff --git a/src/constants/config.js b/src/constants/config.js index e8828ca1..5242c075 100644 --- a/src/constants/config.js +++ b/src/constants/config.js @@ -1,4 +1,4 @@ -export const BASE_AV_APP_URL = 'https://qa-longhorn-portal.np.navi-tech.in/field-app'; +export const BASE_AV_APP_URL = 'https://thor-longhorn-portal.np.navi-tech.in/field-app/field-app'; export const SENTRY_DSN = 'https://877396e88a2b4f78b911016c64f9121a@glitchtip.cmd.navi-tech.in/155'; export const JANUS_SERVICE_URL = 'https://qa-longhorn-portal.np.navi-tech.in/api/events/json'; export const ENV = 'qa'; diff --git a/src/services/clickstreamEventService.ts b/src/services/clickstreamEventService.ts index c430bc80..9547bc14 100644 --- a/src/services/clickstreamEventService.ts +++ b/src/services/clickstreamEventService.ts @@ -73,6 +73,8 @@ const getPayload = (events: IClickstreamEvent[]) => { agentId, deviceId, }, + client_ts: new Date().getTime(), + source: APP_NAME }; };