Skip to content

Commit

Permalink
Add domain capacity to domain info returned for Places.
Browse files Browse the repository at this point in the history
Closes #84
  • Loading branch information
Misterblue committed Apr 19, 2021
1 parent 91d5b79 commit 6b7ca04
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Entities/EntityFilters/VisibilityFilter.ts
Expand Up @@ -25,7 +25,7 @@ import { DomainEntity } from '@Entities/DomainEntity';
// A filter to return entities the requestor can "see".
// This checks for 'friend', 'connection' and 'asAdmin' relationships
// and returns entities that are friends, etc of the requestor.
//
//
// NOTE NOTE NOTE NOTE NOTE
// This filter can't be used as a usual criteria filter because the test
// requires a DB $LOOKUP operation (to lookup the account of the Place's domain)
Expand Down
1 change: 1 addition & 0 deletions src/route-tools/Util.ts
Expand Up @@ -130,6 +130,7 @@ export async function buildDomainInfo(pDomain: DomainEntity): Promise<any> {
'domainId': pDomain.id,
'name': pDomain.name,
'visibility': pDomain.visibility ?? Visibility.OPEN,
'capacity': pDomain.capacity,
'sponsorAccountId': pDomain.sponsorAccountId,
'label': pDomain.name,
'network_address': pDomain.networkAddr,
Expand Down

0 comments on commit 6b7ca04

Please sign in to comment.