Merge pull request #4312 from mempool/mononaut/fix-group-channel-count

Fix node group map channel count
This commit is contained in:
wiz 2023-11-09 19:26:08 +09:00 committed by GitHub
commit 8dcd372b99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View File

@ -57,7 +57,7 @@ export class GroupPreviewComponent implements OnInit {
return of(null); return of(null);
} }
return this.lightningApiService.getNodGroupNodes$(this.groupId); return this.lightningApiService.getNodeGroup$(this.groupId);
}), }),
map((nodes) => { map((nodes) => {
for (const node of nodes) { for (const node of nodes) {

View File

@ -41,7 +41,7 @@ export class GroupComponent implements OnInit {
this.seoService.setTitle(`Mempool.space Lightning Nodes`); this.seoService.setTitle(`Mempool.space Lightning Nodes`);
this.seoService.setDescription(`See all Lightning nodes run by mempool.space -- these are the nodes that provide the data on the mempool.space Lightning dashboard.`); this.seoService.setDescription(`See all Lightning nodes run by mempool.space -- these are the nodes that provide the data on the mempool.space Lightning dashboard.`);
this.nodes$ = this.lightningApiService.getNodGroupNodes$('mempool.space') this.nodes$ = this.lightningApiService.getNodeGroup$('mempool.space')
.pipe( .pipe(
map((nodes) => { map((nodes) => {
for (const node of nodes) { for (const node of nodes) {

View File

@ -27,7 +27,7 @@ export class LightningApiService {
return this.httpClient.get<any>(this.apiBasePath + '/api/v1/lightning/nodes/' + publicKey); return this.httpClient.get<any>(this.apiBasePath + '/api/v1/lightning/nodes/' + publicKey);
} }
getNodGroupNodes$(name: string): Observable<any[]> { getNodeGroup$(name: string): Observable<any[]> {
return this.httpClient.get<any[]>(this.apiBasePath + '/api/v1/lightning/nodes/group/' + name); return this.httpClient.get<any[]>(this.apiBasePath + '/api/v1/lightning/nodes/group/' + name);
} }

View File

@ -88,7 +88,7 @@ export class NodesMap implements OnInit, OnChanges {
node.public_key, node.public_key,
node.alias, node.alias,
node.capacity, node.capacity,
node.channels, node.active_channel_count,
node.country, node.country,
node.iso_code, node.iso_code,
]); ]);