Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix return data for /explore.json so results are returned rather than…
… the Promise
  • Loading branch information
Misterblue committed Mar 15, 2021
1 parent 7bdfdb0 commit 0b84cfb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/routes/explore.ts
Expand Up @@ -44,7 +44,7 @@ const procGetExplore: RequestHandler = async (req: Request, resp: Response, next
const placeDesc: VKeyedCollection = {
'Domain Name': place.name,
};
placeDesc.Address = Places.getAddressString(place);
placeDesc.Address = await Places.getAddressString(place);
placeDesc.Visit = 'hifi://' + placeDesc.Address;

placeDesc.DomainId = aDomain.id;
Expand All @@ -62,7 +62,7 @@ const procGetExplore: RequestHandler = async (req: Request, resp: Response, next

// 'People' is number of people at place for old Explore script
// placeDesc.People = aDomain.numUsers + aDomain.anonUsers;
placeDesc.People = Places.getCurrentAttendance(place, aDomain);
placeDesc.People = await Places.getCurrentAttendance(place, aDomain);

placeDesc.Place = await buildPlaceInfoSmall(place, aDomain);

Expand Down

0 comments on commit 0b84cfb

Please sign in to comment.