Merge pull request #2790 from mempool/nymkappa/bugfix/sql-query

Handle ISP with no nodes
This commit is contained in:
softsimon authored and GitHub committed 2022-12-07 17:40:36 +04:00
commit 5bd9d76ed9
1 file changed
+4
+4
View File
@@ -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[] = [];