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,