Skip to content

Commit

Permalink
Merge pull request #511 from helium/feat/metadata_entity_key_str
Browse files Browse the repository at this point in the history
Adding entity_key_str to /v2/hotspots in metadata-service
  • Loading branch information
deasydoesit authored Dec 19, 2023
2 parents 1e37579 + f9fdf2d commit 66477ff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/metadata-service/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 66477ff

Please sign in to comment.