From e6245482e2b65132e39b58c60537391f0dc35d47 Mon Sep 17 00:00:00 2001 From: Jetttech Date: Fri, 2 Feb 2024 17:31:47 -0600 Subject: [PATCH] parse happ_ids for url --- src/services/servicelogApi.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/services/servicelogApi.js b/src/services/servicelogApi.js index 95edef9..f624c1e 100644 --- a/src/services/servicelogApi.js +++ b/src/services/servicelogApi.js @@ -69,8 +69,9 @@ export async function hAppStats(payload, signature, pubkey, environment, service export async function allHappStats(payload, signature, pubkey, environment, serviceLogPort) { try { + const happIds = JSON.parse(payload.payload.happ_ids) const result = await serviceLogApiCall({ - params: { happ_ids: payload.payload.happ_ids, days: payload.payload.days }, + params: { happ_ids: happIds, days: payload.payload.days }, endpoint: 'stats/happs', }, signature,