From f9fdf2d83e80de2037f6d616e673e30325a98ed3 Mon Sep 17 00:00:00 2001 From: Darwin Rinderer Date: Tue, 19 Dec 2023 11:14:16 -0500 Subject: [PATCH] Adding entity_key_str to /v2/hotspots in metadata-service --- packages/metadata-service/src/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/metadata-service/src/index.ts b/packages/metadata-service/src/index.ts index d999602f3..5e0535fd1 100644 --- a/packages/metadata-service/src/index.ts +++ b/packages/metadata-service/src/index.ts @@ -360,6 +360,7 @@ server.get<{ Querystring: { subnetwork: string; cursor?: string; } }>( result.items = ktas.map((kta) => { return { key_to_asset_key: kta.address, + entity_key_str: decodeEntityKey(kta.entity_key, { [kta.key_serialization]: {} }), is_active: kta[lastItemTable]?.is_active, lat: kta[lastItemTable]?.lat, long: kta[lastItemTable]?.long,