From 70f9c2d7804fa8111321b1fd4201989629dbec15 Mon Sep 17 00:00:00 2001 From: pandutibil Date: Wed, 13 Sep 2023 13:33:14 +0530 Subject: [PATCH] Telemetry request payload updated --- src/app/core/services/telemetry.service.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/core/services/telemetry.service.ts b/src/app/core/services/telemetry.service.ts index 96342c6a..4498d079 100644 --- a/src/app/core/services/telemetry.service.ts +++ b/src/app/core/services/telemetry.service.ts @@ -14,7 +14,7 @@ export class TelemetryService { constructor(private _http: HttpClient, private _browserDetectionService: BrowserDetectionService, private _deviceDetectionService: DeviceDetectionService) { } saveTelemetry(eventData: any): Observable { - let data = { + let data = [{ date: formatDateToDDMMYY(new Date()), timestamp: new Date().getTime(), userId: localStorage.getItem('user_id'), @@ -22,8 +22,8 @@ export class TelemetryService { userLocation: "", browserType: this._browserDetectionService.getBrowserType(), ...eventData - }; + }]; - return this._http.post(`${environment.apiURL}/captureTelemetry`, data); + return this._http.post(`${environment.apiURL}/captureTelemetry`, {data, isTelemetryWritingEnd: false}); } }