Handle ISP with no nodes

This commit is contained in:
nymkappa 2022-12-05 08:11:46 +01:00
parent 5ff5275b36
commit 685433fe4c
No known key found for this signature in database
GPG key ID: E155910B16E8BD04

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[] = [];