Skip to content

Commit

Permalink
Adding entity_key_str to /v2/hotspots in metadata-service
Browse files Browse the repository at this point in the history
  • Loading branch information
deasydoesit committed Dec 19, 2023
1 parent 145ac9b commit f9fdf2d
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 f9fdf2d

Please sign in to comment.