Handle ISP with no nodes

This commit is contained in:
nymkappa committed 2022-12-05 08:11:46 +01:00
1 parent 5ff5275b36
commit 685433fe4c
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[] = [];