Fix node group map channel count
This commit is contained in:
		
							parent
							
								
									5302b27d55
								
							
						
					
					
						commit
						af3d6eccfb
					
				@ -57,7 +57,7 @@ export class GroupPreviewComponent implements OnInit {
 | 
			
		||||
            return of(null);
 | 
			
		||||
          }
 | 
			
		||||
 | 
			
		||||
          return this.lightningApiService.getNodGroupNodes$(this.groupId);
 | 
			
		||||
          return this.lightningApiService.getNodeGroup$(this.groupId);
 | 
			
		||||
        }),
 | 
			
		||||
        map((nodes) => {
 | 
			
		||||
          for (const node of nodes) {
 | 
			
		||||
 | 
			
		||||
@ -41,7 +41,7 @@ export class GroupComponent implements OnInit {
 | 
			
		||||
    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.nodes$ = this.lightningApiService.getNodGroupNodes$('mempool.space')
 | 
			
		||||
    this.nodes$ = this.lightningApiService.getNodeGroup$('mempool.space')
 | 
			
		||||
      .pipe(
 | 
			
		||||
        map((nodes) => {
 | 
			
		||||
          for (const node of nodes) {
 | 
			
		||||
 | 
			
		||||
@ -27,7 +27,7 @@ export class LightningApiService {
 | 
			
		||||
    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);
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -88,7 +88,7 @@ export class NodesMap implements OnInit, OnChanges {
 | 
			
		||||
            node.public_key,
 | 
			
		||||
            node.alias,
 | 
			
		||||
            node.capacity,
 | 
			
		||||
            node.channels,
 | 
			
		||||
            node.active_channel_count,
 | 
			
		||||
            node.country,
 | 
			
		||||
            node.iso_code,
 | 
			
		||||
          ]);
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user