mirror of
https://github.com/mempool/mempool.git
synced 2025-02-23 22:46:54 +01:00
Handle ISP with no nodes
This commit is contained in:
parent
5ff5275b36
commit
685433fe4c
1 changed files with 4 additions and 0 deletions
|
@ -538,6 +538,10 @@ class NodesApi {
|
|||
|
||||
const IPSIds = ISPId.split(',');
|
||||
const [rows]: any = await DB.query(query, [IPSIds, IPSIds]);
|
||||
if (!rows || rows.length === 0) {
|
||||
return [];
|
||||
}
|
||||
|
||||
const nodes = {};
|
||||
|
||||
const intISPIds: number[] = [];
|
||||
|
|
Loading…
Add table
Reference in a new issue